diff options
author | Michal Simek <michal.simek@xilinx.com> | 2015-11-30 13:14:37 (GMT) |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2015-12-07 08:59:05 (GMT) |
commit | 5a9284f7f503f21c0f231b96d62747662080050d (patch) | |
tree | 83a6207df8aca9291528d82d9e228981fefd2b3b /drivers | |
parent | 687d73126361b45f77f977301d141771babd02c0 (diff) | |
download | u-boot-5a9284f7f503f21c0f231b96d62747662080050d.tar.xz |
net: gem: Fix miiphy_read name
Sync it with write function.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Jagan Teki <jteki@openedev.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/zynq_gem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index a569c77..4e93707 100644 --- a/drivers/net/zynq_gem.c +++ b/drivers/net/zynq_gem.c @@ -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); |