1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-27 21:08:26 +02:00

[ar71xx] ag71xx driver: minor cleanup

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13496 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2008-12-03 08:55:39 +00:00
parent 99b811879d
commit e2292acf32

View 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)