Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2eed70de authored by Julia Lawall's avatar Julia Lawall Committed by Greg Kroah-Hartman
Browse files

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: default avatarJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e22defeb
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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,