瀏覽代碼

net: ethernet: wiznet: drop owner assignment from platform_drivers

A platform_driver does not need to set an owner, it will be populated by the
driver core.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Wolfram Sang 11 年之前
父節點
當前提交
bd0e5d5a7e
共有 2 個文件被更改,包括 0 次插入2 次删除
  1. 0 1
      drivers/net/ethernet/wiznet/w5100.c
  2. 0 1
      drivers/net/ethernet/wiznet/w5300.c

+ 0 - 1
drivers/net/ethernet/wiznet/w5100.c

@@ -790,7 +790,6 @@ static SIMPLE_DEV_PM_OPS(w5100_pm_ops, w5100_suspend, w5100_resume);
 static struct platform_driver w5100_driver = {
 	.driver		= {
 		.name	= DRV_NAME,
-		.owner	= THIS_MODULE,
 		.pm	= &w5100_pm_ops,
 	},
 	.probe		= w5100_probe,

+ 0 - 1
drivers/net/ethernet/wiznet/w5300.c

@@ -702,7 +702,6 @@ static SIMPLE_DEV_PM_OPS(w5300_pm_ops, w5300_suspend, w5300_resume);
 static struct platform_driver w5300_driver = {
 	.driver		= {
 		.name	= DRV_NAME,
-		.owner	= THIS_MODULE,
 		.pm	= &w5300_pm_ops,
 	},
 	.probe		= w5300_probe,