From 2eed70ded4d437f55ccaaffe753770987812f8a2 Mon Sep 17 00:00:00 2001 From: Julia Lawall Date: Thu, 10 Nov 2016 21:19:39 +0100 Subject: 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 --- drivers/base/test/test_async_driver_probe.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'drivers/base/test') 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, -- cgit v1.2.3-58-ga151