]> git.sur5r.net Git - u-boot/commitdiff
net: gem: Fix miiphy_read name
authorMichal Simek <michal.simek@xilinx.com>
Mon, 30 Nov 2015 13:14:37 +0000 (14:14 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 7 Dec 2015 08:59:05 +0000 (09:59 +0100)
Sync it with write function.

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

index a569c77aeb602161e74966d610ee7ea5300efc63..4e93707c7ab174495099fc99b939f1690d9be214 100644 (file)
@@ -569,7 +569,7 @@ static void zynq_gem_halt(struct eth_device *dev)
                                                ZYNQ_GEM_NWCTRL_TXEN_MASK, 0);
 }
 
-static int zynq_gem_miiphyread(const char *devname, uchar addr,
+static int zynq_gem_miiphy_read(const char *devname, uchar addr,
                                                        uchar reg, ushort *val)
 {
        struct eth_device *dev = eth_get_dev();
@@ -645,7 +645,7 @@ int zynq_gem_initialize(bd_t *bis, phys_addr_t base_addr,
 
        eth_register(dev);
 
-       miiphy_register(dev->name, zynq_gem_miiphyread, zynq_gem_miiphy_write);
+       miiphy_register(dev->name, zynq_gem_miiphy_read, zynq_gem_miiphy_write);
        priv->bus = miiphy_get_dev_by_name(dev->name);
 
        ret = zynq_phy_init(dev);