summaryrefslogtreecommitdiff
path: root/drivers/net/xilinx_emaclite.c
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2015-12-16 10:40:05 +0100
committerMichal Simek <michal.simek@xilinx.com>2016-01-27 15:55:52 +0100
commitf03ec010158375c404f5b0ebedba7c71c1689d2f (patch)
treeff9a8d5b13e704d68e8c85e727f8242055decb19 /drivers/net/xilinx_emaclite.c
parentd538ee1b54b78295dbc3bd0d8c5d5fafa5c9e343 (diff)
downloadu-boot-f03ec010158375c404f5b0ebedba7c71c1689d2f.tar.gz
net: emaclite: Rename start and stop functions
Rename start and stop functions to align with DM functions names. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'drivers/net/xilinx_emaclite.c')
-rw-r--r--drivers/net/xilinx_emaclite.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/xilinx_emaclite.c b/drivers/net/xilinx_emaclite.c
index 903b3e8d19..7e9a31ea98 100644
--- a/drivers/net/xilinx_emaclite.c
+++ b/drivers/net/xilinx_emaclite.c
@@ -232,9 +232,9 @@ static u32 phywrite(struct xemaclite *emaclite, u32 phyaddress, u32 registernum,
return 0;
}
-static void emaclite_halt(struct udevice *dev)
+static void emaclite_stop(struct udevice *dev)
{
- debug("eth_halt\n");
+ debug("eth_stop\n");
}
/* Use MII register 1 (MII status register) to detect PHY */
@@ -313,7 +313,7 @@ static int setup_phy(struct udevice *dev)
return 1;
}
-static int emaclite_init(struct udevice *dev)
+static int emaclite_start(struct udevice *dev)
{
struct xemaclite *emaclite = dev_get_priv(dev);
struct eth_pdata *pdata = dev_get_platdata(dev);
@@ -580,10 +580,10 @@ static int emaclite_remove(struct udevice *dev)
}
static const struct eth_ops emaclite_ops = {
- .start = emaclite_init,
+ .start = emaclite_start,
.send = emaclite_send,
.recv = emaclite_recv,
- .stop = emaclite_halt,
+ .stop = emaclite_stop,
};
static int emaclite_ofdata_to_platdata(struct udevice *dev)