commit: http://blackfin.uclinux.org/git/?p=linux-kernel;a=commitdiff;h=15d6e15822914c3a2433fcc3388d66da9a65f07b
branch: http://blackfin.uclinux.org/git/?p=linux-kernel;a=shortlog;h=refs/heads/trunk

drivers/net/ethernet/stmicro/stmmac/stmmac_main.c: In function
‘stmmac_hwtstamp_init’:
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:354: warning: passing
argument 2 of ‘__raw_writel’ makes pointer from integer without a cast
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c: In function
‘stmmac_hw_init’:
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:2029: error: ‘dev’
undeclared (first use in this function)

Signed-off-by: Bob Liu <[email protected]>
---
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index 4c89f75..370e84d 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -2026,7 +2026,7 @@ static int stmmac_hw_init(struct stmmac_priv *priv)
 		device_set_wakeup_capable(priv->device, 1);
 	}
 
-	stmmac_hwtstamp_init(dev);
+	stmmac_hwtstamp_init(priv->dev);
 
 	DBG(probe, DEBUG, "%s: Scatter/Gather: %s - HW checksums: %s\n",
 	    dev->name, (dev->features & NETIF_F_SG) ? "on" : "off",
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to