diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-12-03 08:55:39 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-12-03 08:55:39 +0000 |
commit | de2eca1ee89da38f01a000e61f4fa798209875cc (patch) | |
tree | 4c8fc8bfef7ca6b8abdb0b33409c452eb73c59a2 /target | |
parent | 0b7342c6eca6530debc943b766dc7c76692099ac (diff) | |
download | upstream-de2eca1ee89da38f01a000e61f4fa798209875cc.tar.gz upstream-de2eca1ee89da38f01a000e61f4fa798209875cc.tar.bz2 upstream-de2eca1ee89da38f01a000e61f4fa798209875cc.zip |
[ar71xx] ag71xx driver: minor cleanup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13496 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_mdio.c | 6 |
1 files changed, 1 insertions, 5 deletions
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 2cd1ea3224..01888f1105 100644 --- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_mdio.c +++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_mdio.c @@ -159,13 +159,9 @@ static int __init ag71xx_mdio_probe(struct platform_device *pdev) am->mii_bus.write = ag71xx_mdio_write; am->mii_bus.reset = ag71xx_mdio_reset; am->mii_bus.irq = am->mii_irq; -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26)) - am->mii_bus.id = 0; -#else - snprintf(am->mii_bus.id, MII_BUS_ID_SIZE, "%x", 0); -#endif am->mii_bus.priv = am; am->mii_bus.dev = &pdev->dev; + snprintf(am->mii_bus.id, MII_BUS_ID_SIZE, "%x", 0); pdata = pdev->dev.platform_data; if (pdata) |