Skip to content

Commit

Permalink
spi: sprd-adi: fix platform_no_drv_owner.cocci warnings
Browse files Browse the repository at this point in the history
drivers/spi/spi-sprd-adi.c:409:3-8: No need to set .owner here. The core will do it.

 Remove .owner field if calls are used which set it automatically

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

Fixes: 7e2903c ("spi: Add ADI driver for Spreadtrum platform")
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Wu Fengguang authored and Mark Brown committed Oct 13, 2017
1 parent e83f374 commit 8955b26
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/spi/spi-sprd-adi.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,6 @@ MODULE_DEVICE_TABLE(of, sprd_adi_of_match);
static struct platform_driver sprd_adi_driver = {
.driver = {
.name = "sprd-adi",
.owner = THIS_MODULE,
.of_match_table = sprd_adi_of_match,
},
.probe = sprd_adi_probe,
Expand Down

0 comments on commit 8955b26

Please sign in to comment.