netx eth: Fix compilation
Also, replace __FUNCTION__ with __func__ Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
ac4c5e36bd
commit
fce89665e2
|
@ -130,8 +130,8 @@ static int netx_miidev_read(struct mii_device *mdev, int phy_addr, int reg)
|
|||
|
||||
value = MIIMU_REG >> 16;
|
||||
|
||||
debug("%s: addr: 0x%02x reg: 0x%02x val: 0x%04x\n", __FUNCTION__,
|
||||
addr, reg, value)
|
||||
debug("%s: addr: 0x%02x reg: 0x%02x val: 0x%04x\n", __func__,
|
||||
addr, reg, value);
|
||||
|
||||
return value;
|
||||
}
|
||||
|
@ -139,7 +139,7 @@ static int netx_miidev_read(struct mii_device *mdev, int phy_addr, int reg)
|
|||
static int netx_miidev_write(struct mii_device *mdev, int phy_addr,
|
||||
int reg, int val)
|
||||
{
|
||||
debug("%s: addr: 0x%02x reg: 0x%02x val: 0x%04x\n",__FUNCTION__,
|
||||
debug("%s: addr: 0x%02x reg: 0x%02x val: 0x%04x\n",__func__,
|
||||
addr, reg, val);
|
||||
|
||||
MIIMU_REG = MIIMU_SNRDY | MIIMU_PREAMBLE | MIIMU_PHYADDR(phy_addr) |
|
||||
|
@ -214,7 +214,7 @@ static int netx_eth_set_ethaddr(struct eth_device *edev, unsigned char *adr)
|
|||
struct netx_eth_priv *priv = (struct netx_eth_priv *)edev->priv;
|
||||
int xcno = priv->xcno;
|
||||
|
||||
debug("%s\n", __FUNCTION__);
|
||||
debug("%s\n", __func__);
|
||||
|
||||
/* set MAC address */
|
||||
XMAC_REG(xcno, XMAC_RPU_HOLD_PC) = RPU_HOLD_PC;
|
||||
|
|
Loading…
Reference in New Issue