Skip to content

Commit 2eed70d

Browse files
JuliaLawallgregkh
authored andcommitted
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>
1 parent e22defe commit 2eed70d

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎drivers/base/test/test_async_driver_probe.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ static int test_probe(struct platform_device *pdev)
3636
static struct platform_driver async_driver = {
3737
.driver = {
3838
.name = "test_async_driver",
39-
.owner = THIS_MODULE,
4039
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
4140
},
4241
.probe = test_probe,
@@ -45,7 +44,6 @@ static struct platform_driver async_driver = {
4544
static struct platform_driver sync_driver = {
4645
.driver = {
4746
.name = "test_sync_driver",
48-
.owner = THIS_MODULE,
4947
.probe_type = PROBE_FORCE_SYNCHRONOUS,
5048
},
5149
.probe = test_probe,

0 commit comments

Comments
 (0)