Skip to content

Commit

Permalink
net: smc91x: Fix up type mismatch in smc_drv_resume().
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt authored and David S. Miller committed Dec 11, 2009
1 parent fd0775b commit 5fc3441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/smc91x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5fc3441

Please sign in to comment.