* [PATCH] net: smc91x: Fix up type mismatch in smc_drv_resume().
@ 2009-12-11 6:42 Paul Mundt
2009-12-11 23:17 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Paul Mundt @ 2009-12-11 6:42 UTC (permalink / raw)
To: Nicolas Pitre; +Cc: David S. Miller, netdev, linux-kernel
smc_drv_resume() takes a struct device, while smc_enable_device() takes a
platform device. This fixes up the smc_enable_device() callsite with the
proper pointer.
It's not obvious when this change was introduced, as git history doesn't
go back that far. Presumably the resume code has always been broken in
this fashion.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
---
drivers/net/smc91x.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/smc91x.c b/drivers/net/smc91x.c
index ae4983a..5c9222d 100644
--- a/drivers/net/smc91x.c
+++ b/drivers/net/smc91x.c
@@ -2387,7 +2387,7 @@ static int smc_drv_resume(struct device *dev)
if (ndev) {
struct smc_local *lp = netdev_priv(ndev);
- smc_enable_device(dev);
+ smc_enable_device(pdev);
if (netif_running(ndev)) {
smc_reset(ndev);
smc_enable(ndev);
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-11 23:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-11 6:42 [PATCH] net: smc91x: Fix up type mismatch in smc_drv_resume() Paul Mundt
2009-12-11 23:17 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).