diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-12-10 15:42:27 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-12-11 18:07:54 -0500 |
commit | 5fc3441349936ea6f1f95a1ef17492223c76a695 (patch) | |
tree | 3270d67d13f52964d4368344881a5c08be8b7cee /drivers/net | |
parent | fd0775bfc9feb036e6efb669133d644ae29e12b8 (diff) |
net: smc91x: Fix up type mismatch in smc_drv_resume().
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/smc91x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/smc91x.c b/drivers/net/smc91x.c index b0c92b60c925..ea4fae79d6ec 100644 --- a/drivers/net/smc91x.c +++ b/drivers/net/smc91x.c | |||
@@ -2387,7 +2387,7 @@ static int smc_drv_resume(struct device *dev) | |||
2387 | 2387 | ||
2388 | if (ndev) { | 2388 | if (ndev) { |
2389 | struct smc_local *lp = netdev_priv(ndev); | 2389 | struct smc_local *lp = netdev_priv(ndev); |
2390 | smc_enable_device(dev); | 2390 | smc_enable_device(pdev); |
2391 | if (netif_running(ndev)) { | 2391 | if (netif_running(ndev)) { |
2392 | smc_reset(ndev); | 2392 | smc_reset(ndev); |
2393 | smc_enable(ndev); | 2393 | smc_enable(ndev); |