From: Paul Mundt Date: Thu, 10 Dec 2009 20:42:27 +0000 (+0000) Subject: net: smc91x: Fix up type mismatch in smc_drv_resume(). X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5fc3441349936ea6f1f95a1ef17492223c76a695;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: David S. Miller --- 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) 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);