summaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-12-03 08:55:39 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-12-03 08:55:39 +0000
commit4c98f47b14b42ce2ced8cf8ae5b733b2eb2e13bd (patch)
treea2a1807c81d670a1c88ee5d56c7229390516de9f /target/linux
parentdc3576a1368f2f26938ade420201659f0564ac56 (diff)
downloadmaster-31e0f0ae-4c98f47b14b42ce2ced8cf8ae5b733b2eb2e13bd.tar.gz
master-31e0f0ae-4c98f47b14b42ce2ced8cf8ae5b733b2eb2e13bd.tar.bz2
master-31e0f0ae-4c98f47b14b42ce2ced8cf8ae5b733b2eb2e13bd.zip
ag71xx driver: minor cleanup
SVN-Revision: 13496
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_mdio.c6
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)