From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753403AbbJGDPf (ORCPT ); Tue, 6 Oct 2015 23:15:35 -0400 Received: from mga02.intel.com ([134.134.136.20]:10511 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752667AbbJGDPe (ORCPT ); Tue, 6 Oct 2015 23:15:34 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,647,1437462000"; d="scan'208";a="805254104" Date: Wed, 7 Oct 2015 11:14:13 +0800 From: kbuild test robot 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 Subject: [PATCH] gpio: fix platform_no_drv_owner.cocci warnings Message-ID: <20151007031413.GA12931@roam> References: <201510071151.hH4lMK2P%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151007024018.GA25534@sophia> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@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 };