Skip to contentSkip to conversation

driver-core: fix platform_no_drv_owner.cocci warnings

PATCH New Julia Lawall 1 participant 1 message Nov 10, 2016 Driver core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 driver-core: fix platform_no_drv_owner.cocci warnings

Remove .owner field initialization as the core will do it.

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

---

0-day warning:

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git driver-core-testing
head:   dfea747d2aba77443acf7ce6fa37caa729bd034c
commit: 79543cf2b18ea4a35f8864849d7ad8882ea8a23d [10/14] driver-core: add test module for asynchronous probing
 test_async_driver_probe.c |    2 --
 1 file changed, 2 deletions(-)
drivers/base/test/test_async_driver_probe.c +0 -2
@@ -36,7 +36,6 @@ static int test_probe(struct platform_de
 static struct platform_driver async_driver = {
 	.driver = {
 		.name = "test_async_driver",
-		.owner = THIS_MODULE,
 		.probe_type = PROBE_PREFER_ASYNCHRONOUS,
 	},
 	.probe = test_probe,
@@ -45,7 +44,6 @@ static struct platform_driver async_driv
 static struct platform_driver sync_driver = {
 	.driver = {
 		.name = "test_sync_driver",
-		.owner = THIS_MODULE,
 		.probe_type = PROBE_FORCE_SYNCHRONOUS,
 	},
 	.probe = test_probe,