Skip to content

Commit

Permalink
ftgmac100: Rename ftgmac100_setup_mac to ftgmac100_initial_mac
Browse files Browse the repository at this point in the history
To remove more confusion. This function is about obtaining the
initial MAC address at driver probe time.

Signed-off-by: Benjamin Herrenschmidt <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
ozbenh authored and davem330 committed Apr 12, 2017
1 parent f39c71b commit ba1b123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/faraday/ftgmac100.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ static void ftgmac100_write_mac_addr(struct ftgmac100 *priv, const u8 *mac)
iowrite32(laddr, priv->base + FTGMAC100_OFFSET_MAC_LADR);
}

static void ftgmac100_setup_mac(struct ftgmac100 *priv)
static void ftgmac100_initial_mac(struct ftgmac100 *priv)
{
u8 mac[ETH_ALEN];
unsigned int m;
Expand Down Expand Up @@ -1442,7 +1442,7 @@ static int ftgmac100_probe(struct platform_device *pdev)
netdev->irq = irq;

/* MAC address from chip or random one */
ftgmac100_setup_mac(priv);
ftgmac100_initial_mac(priv);

np = pdev->dev.of_node;
if (np && (of_device_is_compatible(np, "aspeed,ast2400-mac") ||
Expand Down

0 comments on commit ba1b123

Please sign in to comment.