driver-core: fix platform_no_drv_owner.cocci warnings
authorJulia Lawall <julia.lawall@lip6.fr>
Thu, 10 Nov 2016 20:19:39 +0000 (21:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Nov 2016 19:58:31 +0000 (20:58 +0100)
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>
drivers/base/test/test_async_driver_probe.c

index 3a71e83e5d981535fd7806cc6800a8c55ce6a1b3..1c5eddda5cc2723549bffdcb56be7314a36ed259 100644 (file)
@@ -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,