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

YueHaibing yuehaibing at huawei.com
Thu Nov 15 12:59:49 AEDT 2018


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 at huawei.com>
---
 drivers/spi/spi-npcm-pspi.c | 1 -
 1 file changed, 1 deletion(-)

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,







More information about the openbmc mailing list