From: Julia Lawall Date: Thu, 10 Nov 2016 20:19:39 +0000 (+0100) Subject: driver-core: fix platform_no_drv_owner.cocci warnings X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2eed70ded4d437f55ccaaffe753770987812f8a2;p=linux-beck.git 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 Signed-off-by: Julia Lawall Signed-off-by: Fengguang Wu Signed-off-by: Greg Kroah-Hartman --- 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,