[-next] spi: npcm: fix platform_no_drv_owner.cocci warnings

Message ID 1542247189-193094-1-git-send-email-yuehaibing@huawei.com
State Not Applicable, archived
Headers show
Series
  • [-next] spi: npcm: fix platform_no_drv_owner.cocci warnings
Related show

Commit Message

YueHaibing Nov. 15, 2018, 1:59 a.m.
Remove .owner field if calls are used which set it automatically
Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/spi/spi-npcm-pspi.c | 1 -
 1 file changed, 1 deletion(-)

Patch

diff --git a/drivers/spi/spi-npcm-pspi.c b/drivers/spi/spi-npcm-pspi.c
index 5177751..f5d68e9 100644
--- a/drivers/spi/spi-npcm-pspi.c
+++ b/drivers/spi/spi-npcm-pspi.c
@@ -467,7 +467,6 @@  static int npcm_pspi_remove(struct platform_device *pdev)
 	.driver		= {
 		.name		= DRIVER_NAME,
 		.of_match_table	= npcm_pspi_match,
-		.owner		= THIS_MODULE,
 	},
 	.probe		= npcm_pspi_probe,
 	.remove		= npcm_pspi_remove,