aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-11-12 18:08:32 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-11-12 18:08:32 +0000
commit5a1d964785d67857177b63dd8407107c76f5f5ee (patch)
treeda52f949a3b9a5c2051af508ae1c0b66e95b4cdb /target/linux/ar71xx/files
parent244eec7994d5cebae890294e94b8c2ecacfb8b05 (diff)
downloadupstream-5a1d964785d67857177b63dd8407107c76f5f5ee.tar.gz
upstream-5a1d964785d67857177b63dd8407107c76f5f5ee.tar.bz2
upstream-5a1d964785d67857177b63dd8407107c76f5f5ee.zip
[ar71xx] cosmetic changes in the ag71xx driver
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13193 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files')
-rw-r--r--target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c24
-rw-r--r--target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_mdio.c8
2 files changed, 16 insertions, 16 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c
index 6b10791cce..973946cf5d 100644
--- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c
+++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c
@@ -85,7 +85,7 @@ static int ag71xx_ring_alloc(struct ag71xx_ring *ring, unsigned int size)
return 0;
-err:
+ err:
return err;
}
@@ -341,7 +341,7 @@ static int ag71xx_open(struct net_device *dev)
return 0;
-err:
+ err:
ag71xx_rings_cleanup(ag);
return ret;
}
@@ -419,7 +419,7 @@ static int ag71xx_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
return 0;
-err_drop:
+ err_drop:
dev->stats.tx_dropped++;
dev_kfree_skb(skb);
@@ -812,19 +812,19 @@ static int __init ag71xx_probe(struct platform_device *pdev)
return 0;
-err_unregister_netdev:
+ err_unregister_netdev:
unregister_netdev(dev);
-err_free_irq:
+ err_free_irq:
free_irq(dev->irq, dev);
-err_unmap_mii_ctrl:
+ err_unmap_mii_ctrl:
iounmap(ag->mii_ctrl);
-err_unmap_base2:
+ err_unmap_base2:
iounmap(ag->mac_base2);
-err_unmap_base1:
+ err_unmap_base1:
iounmap(ag->mac_base);
-err_free_dev:
+ err_free_dev:
kfree(dev);
-err_out:
+ err_out:
platform_set_drvdata(pdev, NULL);
return err;
}
@@ -871,9 +871,9 @@ static int __init ag71xx_module_init(void)
return 0;
-err_mdio_exit:
+ err_mdio_exit:
ag71xx_mdio_driver_exit();
-err_out:
+ err_out:
return ret;
}
diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_mdio.c b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_mdio.c
index b58d3cb55e..fb53d9d76d 100644
--- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_mdio.c
+++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_mdio.c
@@ -69,7 +69,7 @@ static int ag71xx_mdio_mii_read(struct ag71xx_mdio *am, int addr, int reg)
DBG("mii_read: addr=%04x, reg=%04x, value=%04x\n", addr, reg, ret);
-out:
+ out:
return ret;
}
@@ -184,11 +184,11 @@ static int __init ag71xx_mdio_probe(struct platform_device *pdev)
ag71xx_mdio_bus = am;
return 0;
-err_iounmap:
+ err_iounmap:
iounmap(am->mdio_base);
-err_free_mdio:
+ err_free_mdio:
kfree(am);
-err_out:
+ err_out:
return err;
}