All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] driver-core: fix platform_no_drv_owner.cocci warnings
@ 2016-11-10 20:19 Julia Lawall
  0 siblings, 0 replies; only message in thread
From: Julia Lawall @ 2016-11-10 20:19 UTC (permalink / raw)
  To: Dmitry Torokhov
  Cc: kbuild-all, devel, Greg Kroah-Hartman, Olof Johansson,
	Guenter Roeck, Thierry Escande, linux-kernel

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

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

CC: Dmitry Torokhov <dtor@chromium.org>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

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(-)

--- a/drivers/base/test/test_async_driver_probe.c
+++ b/drivers/base/test/test_async_driver_probe.c
@@ -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,

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-11-10 20:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-10 20:19 [PATCH] driver-core: fix platform_no_drv_owner.cocci warnings Julia Lawall

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.