summaryrefslogtreecommitdiff
path: root/drivers/base/test
diff options
context:
space:
mode:
authorJulia Lawall <julia.lawall@lip6.fr>2016-11-10 23:19:39 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-11-29 22:58:31 +0300
commit2eed70ded4d437f55ccaaffe753770987812f8a2 (patch)
tree161a0e821caf06fdd74644ed0cea9d95a2f494e7 /drivers/base/test
parente22defeb9810d98dfffe9d84e036559af1742d96 (diff)
downloadlinux-2eed70ded4d437f55ccaaffe753770987812f8a2.tar.xz
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 CC: Dmitry Torokhov <dtor@chromium.org> Signed-off-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/test')
-rw-r--r--drivers/base/test/test_async_driver_probe.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/base/test/test_async_driver_probe.c b/drivers/base/test/test_async_driver_probe.c
index 3a71e83e5d98..1c5eddda5cc2 100644
--- 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_device *pdev)
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_driver = {
static struct platform_driver sync_driver = {
.driver = {
.name = "test_sync_driver",
- .owner = THIS_MODULE,
.probe_type = PROBE_FORCE_SYNCHRONOUS,
},
.probe = test_probe,