9
0
Fork 0

net/designware: fix phylib support

/opt/work/barebox/drivers/net/designware.c: In function 'dwc_update_linkspeed':
/opt/work/barebox/drivers/net/designware.c:234:9: error: 'mac_p' undeclared (first use in this function)
/opt/work/barebox/drivers/net/designware.c:234:9: note: each undeclared identifier is reported only once for each function it appears in
/opt/work/barebox/drivers/net/designware.c: In function 'dwc_ether_open':
/opt/work/barebox/drivers/net/designware.c:254:6: error: too few arguments to function 'phy_device_connect'
/opt/work/barebox/include/linux/phy.h:252:5: note: declared here
/opt/work/barebox/drivers/net/designware.c: At top level:
/opt/work/barebox/drivers/net/designware.c:226:13: warning: 'dwc_update_linkspeed' defined but not used

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD 2012-10-04 09:00:27 +02:00 committed by Sascha Hauer
parent e9ceaed8f8
commit 7407118bbf
1 changed files with 2 additions and 1 deletions

View File

@ -226,6 +226,7 @@ static int dwc_ether_init(struct eth_device *dev)
static void dwc_update_linkspeed(struct eth_device *edev)
{
struct dw_eth_dev *priv = edev->priv;
struct eth_mac_regs *mac_p = priv->mac_regs_p;
u32 conf;
if (priv->fix_mac_speed)
@ -251,7 +252,7 @@ static int dwc_ether_open(struct eth_device *dev)
int ret;
ret = phy_device_connect(dev, &priv->miibus, priv->phy_addr,
0, PHY_INTERFACE_MODE_NA);
dwc_update_linkspeed, 0, PHY_INTERFACE_MODE_NA);
if (ret)
return ret;