diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-11-12 18:50:29 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2010-11-12 18:50:29 +0000 |
commit | 500fac17357c37f07b9e8535b44d355d442b3b55 (patch) | |
tree | 3455cbcd7a3fb0258bdfbc05f4ac83979e12334f /target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar7240.c | |
parent | 7fad1dae857560b400794ff2727a527ae3cfa750 (diff) | |
download | upstream-500fac17357c37f07b9e8535b44d355d442b3b55.tar.gz upstream-500fac17357c37f07b9e8535b44d355d442b3b55.tar.bz2 upstream-500fac17357c37f07b9e8535b44d355d442b3b55.zip |
ar71xx: fix whitespaces nits
(build error has been fixed - juhosg)
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
SVN-Revision: 23975
Diffstat (limited to 'target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar7240.c')
-rw-r--r-- | target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar7240.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar7240.c b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar7240.c index fec9a87ba3..a8e68404b9 100644 --- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar7240.c +++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar7240.c @@ -414,7 +414,7 @@ static int ar7240sw_reset(struct ar7240sw *as) AR7240_MASK_CTRL_SOFT_RESET); ret = ar7240sw_reg_wait(as, AR7240_REG_MASK_CTRL, - AR7240_MASK_CTRL_SOFT_RESET, 0, 1000); + AR7240_MASK_CTRL_SOFT_RESET, 0, 1000); return ret; } @@ -518,7 +518,7 @@ static int ar7240_set_addr(struct ar7240sw *as, u8 *addr) static int ar7240_set_vid(struct switch_dev *dev, const struct switch_attr *attr, - struct switch_val *val) + struct switch_val *val) { struct ar7240sw *as = sw_to_ar7240(dev); as->vlan_id[val->port_vlan] = val->value.i; @@ -527,7 +527,7 @@ ar7240_set_vid(struct switch_dev *dev, const struct switch_attr *attr, static int ar7240_get_vid(struct switch_dev *dev, const struct switch_attr *attr, - struct switch_val *val) + struct switch_val *val) { struct ar7240sw *as = sw_to_ar7240(dev); val->value.i = as->vlan_id[val->port_vlan]; @@ -613,7 +613,7 @@ ar7240_set_ports(struct switch_dev *dev, struct switch_val *val) static int ar7240_set_vlan(struct switch_dev *dev, const struct switch_attr *attr, - struct switch_val *val) + struct switch_val *val) { struct ar7240sw *as = sw_to_ar7240(dev); as->vlan = !!val->value.i; @@ -622,7 +622,7 @@ ar7240_set_vlan(struct switch_dev *dev, const struct switch_attr *attr, static int ar7240_get_vlan(struct switch_dev *dev, const struct switch_attr *attr, - struct switch_val *val) + struct switch_val *val) { struct ar7240sw *as = sw_to_ar7240(dev); val->value.i = as->vlan; @@ -790,8 +790,8 @@ static struct ar7240sw *ar7240_probe(struct ag71xx *ag) swdev->ops = &ar7240_ops; if (register_switch(&as->swdev, ag->dev) < 0) { - kfree(as); - return NULL; + kfree(as); + return NULL; } printk("%s: Found an AR7240 built-in switch\n", ag->dev->name); |