Browse Source

net: can: cc770: 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 10 years ago
parent
commit
8e58ed1ce2
2 changed files with 0 additions and 2 deletions
  1. 0 1
      drivers/net/can/cc770/cc770_isa.c
  2. 0 1
      drivers/net/can/cc770/cc770_platform.c

+ 0 - 1
drivers/net/can/cc770/cc770_isa.c

@@ -318,7 +318,6 @@ static struct platform_driver cc770_isa_driver = {
 	.remove = cc770_isa_remove,
 	.remove = cc770_isa_remove,
 	.driver = {
 	.driver = {
 		.name = KBUILD_MODNAME,
 		.name = KBUILD_MODNAME,
-		.owner = THIS_MODULE,
 	},
 	},
 };
 };
 
 

+ 0 - 1
drivers/net/can/cc770/cc770_platform.c

@@ -264,7 +264,6 @@ MODULE_DEVICE_TABLE(of, cc770_platform_table);
 static struct platform_driver cc770_platform_driver = {
 static struct platform_driver cc770_platform_driver = {
 	.driver = {
 	.driver = {
 		.name = DRV_NAME,
 		.name = DRV_NAME,
-		.owner = THIS_MODULE,
 		.of_match_table = cc770_platform_table,
 		.of_match_table = cc770_platform_table,
 	},
 	},
 	.probe = cc770_platform_probe,
 	.probe = cc770_platform_probe,