From mboxrd@z Thu Jan 1 00:00:00 1970 From: kbuild test robot Subject: [PATCH] spi: spi-pic32: fix platform_no_drv_owner.cocci warnings Date: Fri, 4 Mar 2016 23:22:38 +0800 Message-ID: <20160304152238.GA27359@lkp-ib03> References: <201603042319.6opKQQ8d%fengguang.wu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kbuild-all-JC7UmRfGjtg@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Purna Chandra Mandal , Mark Brown , Joshua Henderson , Sergei Shtylyov To: Purna Chandra Mandal Return-path: Content-Disposition: inline In-Reply-To: <1457099082-12587-2-git-send-email-purna.mandal-UWL1GkI3JZL3oGB3hsPCZA@public.gmane.org> Sender: linux-spi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: drivers/spi/spi-pic32.c:993: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 CC: Purna Chandra Mandal Signed-off-by: Fengguang Wu --- spi-pic32.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/spi/spi-pic32.c +++ b/drivers/spi/spi-pic32.c @@ -990,7 +990,6 @@ MODULE_DEVICE_TABLE(of, pic32_spi_of_mat static struct platform_driver pic32_spi_driver = { .driver = { .name = "spi-pic32", - .owner = THIS_MODULE, .of_match_table = of_match_ptr(pic32_spi_of_match), }, .probe = pic32_spi_probe, -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html