From mboxrd@z Thu Jan 1 00:00:00 1970 From: kbuild test robot Subject: [PATCH] gpio: fix platform_no_drv_owner.cocci warnings Date: Wed, 7 Oct 2015 11:14:13 +0800 Message-ID: <20151007031413.GA12931@roam> References: <201510071151.hH4lMK2P%fengguang.wu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20151007024018.GA25534@sophia> Sender: linux-kernel-owner@vger.kernel.org To: William Breathitt Gray Cc: kbuild-all@01.org, linus.walleij@linaro.org, gnurou@gmail.com, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org List-Id: linux-gpio@vger.kernel.org drivers/gpio/gpio-104-idio-16.c:151: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: William Breathitt Gray Signed-off-by: Fengguang Wu --- gpio-104-idio-16.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/gpio/gpio-104-idio-16.c +++ b/drivers/gpio/gpio-104-idio-16.c @@ -148,7 +148,6 @@ static struct platform_device *a_104_idi static struct platform_driver a_104_idio_16_driver = { .driver = { .name = "104-idio-16", - .owner = THIS_MODULE }, .remove = a_104_idio_16_remove };