Loading drivers/net/dm9000.c +12 −6 Original line number Original line Diff line number Diff line Loading @@ -1483,9 +1483,10 @@ dm9000_probe(struct platform_device *pdev) } } static int static int dm9000_drv_suspend(struct platform_device *dev, pm_message_t state) dm9000_drv_suspend(struct device *dev) { { struct net_device *ndev = platform_get_drvdata(dev); struct platform_device *pdev = to_platform_device(dev); struct net_device *ndev = platform_get_drvdata(pdev); board_info_t *db; board_info_t *db; if (ndev) { if (ndev) { Loading @@ -1501,9 +1502,10 @@ dm9000_drv_suspend(struct platform_device *dev, pm_message_t state) } } static int static int dm9000_drv_resume(struct platform_device *dev) dm9000_drv_resume(struct device *dev) { { struct net_device *ndev = platform_get_drvdata(dev); struct platform_device *pdev = to_platform_device(dev); struct net_device *ndev = platform_get_drvdata(pdev); board_info_t *db = netdev_priv(ndev); board_info_t *db = netdev_priv(ndev); if (ndev) { if (ndev) { Loading @@ -1520,6 +1522,11 @@ dm9000_drv_resume(struct platform_device *dev) return 0; return 0; } } static struct dev_pm_ops dm9000_drv_pm_ops = { .suspend = dm9000_drv_suspend, .resume = dm9000_drv_resume, }; static int __devexit static int __devexit dm9000_drv_remove(struct platform_device *pdev) dm9000_drv_remove(struct platform_device *pdev) { { Loading @@ -1539,11 +1546,10 @@ static struct platform_driver dm9000_driver = { .driver = { .driver = { .name = "dm9000", .name = "dm9000", .owner = THIS_MODULE, .owner = THIS_MODULE, .pm = &dm9000_drv_pm_ops, }, }, .probe = dm9000_probe, .probe = dm9000_probe, .remove = __devexit_p(dm9000_drv_remove), .remove = __devexit_p(dm9000_drv_remove), .suspend = dm9000_drv_suspend, .resume = dm9000_drv_resume, }; }; static int __init static int __init Loading Loading
drivers/net/dm9000.c +12 −6 Original line number Original line Diff line number Diff line Loading @@ -1483,9 +1483,10 @@ dm9000_probe(struct platform_device *pdev) } } static int static int dm9000_drv_suspend(struct platform_device *dev, pm_message_t state) dm9000_drv_suspend(struct device *dev) { { struct net_device *ndev = platform_get_drvdata(dev); struct platform_device *pdev = to_platform_device(dev); struct net_device *ndev = platform_get_drvdata(pdev); board_info_t *db; board_info_t *db; if (ndev) { if (ndev) { Loading @@ -1501,9 +1502,10 @@ dm9000_drv_suspend(struct platform_device *dev, pm_message_t state) } } static int static int dm9000_drv_resume(struct platform_device *dev) dm9000_drv_resume(struct device *dev) { { struct net_device *ndev = platform_get_drvdata(dev); struct platform_device *pdev = to_platform_device(dev); struct net_device *ndev = platform_get_drvdata(pdev); board_info_t *db = netdev_priv(ndev); board_info_t *db = netdev_priv(ndev); if (ndev) { if (ndev) { Loading @@ -1520,6 +1522,11 @@ dm9000_drv_resume(struct platform_device *dev) return 0; return 0; } } static struct dev_pm_ops dm9000_drv_pm_ops = { .suspend = dm9000_drv_suspend, .resume = dm9000_drv_resume, }; static int __devexit static int __devexit dm9000_drv_remove(struct platform_device *pdev) dm9000_drv_remove(struct platform_device *pdev) { { Loading @@ -1539,11 +1546,10 @@ static struct platform_driver dm9000_driver = { .driver = { .driver = { .name = "dm9000", .name = "dm9000", .owner = THIS_MODULE, .owner = THIS_MODULE, .pm = &dm9000_drv_pm_ops, }, }, .probe = dm9000_probe, .probe = dm9000_probe, .remove = __devexit_p(dm9000_drv_remove), .remove = __devexit_p(dm9000_drv_remove), .suspend = dm9000_drv_suspend, .resume = dm9000_drv_resume, }; }; static int __init static int __init Loading