From: kbuild test robot Date: Thu, 15 Nov 2018 07:11:13 +0000 (+0800) Subject: spi: npcm: fix platform_no_drv_owner.cocci warnings X-Git-Tag: v5.0-rc1~174^2~1^2~35 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=7986e2273c1ed987ff34f1c318d5a2b18e8c0fee;p=linux.git spi: npcm: fix platform_no_drv_owner.cocci warnings drivers/spi/spi-npcm-pspi.c:470: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: 2a22f1b30cee ("spi: npcm: add NPCM PSPI controller driver") CC: Tomer Maimon Signed-off-by: kbuild test robot Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-npcm-pspi.c b/drivers/spi/spi-npcm-pspi.c index 6dae91091143..342178e282bc 100644 --- a/drivers/spi/spi-npcm-pspi.c +++ b/drivers/spi/spi-npcm-pspi.c @@ -467,7 +467,6 @@ static struct platform_driver npcm_pspi_driver = { .driver = { .name = DRIVER_NAME, .of_match_table = npcm_pspi_match, - .owner = THIS_MODULE, }, .probe = npcm_pspi_probe, .remove = npcm_pspi_remove,