Skip to content

Commit

Permalink
driver-core: fix platform_no_drv_owner.cocci warnings
Browse files Browse the repository at this point in the history
Remove .owner field initialization as the core will do it.

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

CC: Dmitry Torokhov <[email protected]>
Signed-off-by: Julia Lawall <[email protected]>
Signed-off-by: Fengguang Wu <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
JuliaLawall authored and gregkh committed Nov 29, 2016
1 parent e22defe commit 2eed70d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/base/test/test_async_driver_probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 2eed70d

Please sign in to comment.