ag71xx driver: minor cleanup
authorGabor Juhos <juhosg@openwrt.org>
Wed, 3 Dec 2008 08:55:39 +0000 (08:55 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Wed, 3 Dec 2008 08:55:39 +0000 (08:55 +0000)
SVN-Revision: 13496

target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_mdio.c

index 2cd1ea3224e6780cd9ca89bbae00638e9aa40824..01888f1105f1e8f32796b1141c262114b13dc3a0 100644 (file)
@@ -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)