9
0
Fork 0

netx eth: Fix compilation

Also, replace __FUNCTION__ with __func__

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2010-09-20 09:43:10 +02:00
parent ac4c5e36bd
commit fce89665e2
1 changed files with 4 additions and 4 deletions

View File

@ -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;