]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
net: zynq: No need to check MII, CMD_MII or PHYLIB dependencies
authorMichal Simek <michal.simek@xilinx.com>
Mon, 25 May 2015 09:22:39 +0000 (11:22 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 25 May 2015 09:24:22 +0000 (11:24 +0200)
The whole driver depends on PHYLIB which provides miiphy_register and
miiphy_get_dev_by_name functions.
That's why remove MII, CMD_MII and PHYLIB checking.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/net/zynq_gem.c

index ce3a2db6aa3dbdfcd4719e0c3ef6eb41738a73ca..0105ff0f74de788dc68e16775f4a9533d745cf77 100644 (file)
@@ -569,10 +569,8 @@ int zynq_gem_initialize(bd_t *bis, phys_addr_t base_addr,
 
        eth_register(dev);
 
-#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII) || defined(CONFIG_PHYLIB)
        miiphy_register(dev->name, zynq_gem_miiphyread, zynq_gem_miiphy_write);
        priv->bus = miiphy_get_dev_by_name(dev->name);
-#endif
 
        return 1;
 }