From patchwork Sat Jan 9 00:50:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kernel test robot X-Patchwork-Id: 565106 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id A06E71401CD for ; Sat, 9 Jan 2016 11:51:06 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756449AbcAIAus (ORCPT ); Fri, 8 Jan 2016 19:50:48 -0500 Received: from mga09.intel.com ([134.134.136.24]:46956 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756339AbcAIAun (ORCPT ); Fri, 8 Jan 2016 19:50:43 -0500 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP; 08 Jan 2016 16:50:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,541,1444719600"; d="scan'208";a="877703364" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by fmsmga001.fm.intel.com with ESMTP; 08 Jan 2016 16:50:42 -0800 Received: from kbuild by bee with local (Exim 4.83) (envelope-from ) id 1aHhjo-0008D1-PE; Sat, 09 Jan 2016 08:50:36 +0800 Date: Sat, 9 Jan 2016 08:50:04 +0800 From: kbuild test robot To: richard.dorsch@gmail.com Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org, lm-sensors@lm-sensors.org, linux-i2c@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-gpio@vger.kernel.org, lee.jones@linaro.org, jdelvare@suse.com, linux@roeck-us.net, wim@iguana.be, jo.sunga@advantech.com, Richard Vidal-Dorsch Subject: [PATCH] fix platform_no_drv_owner.cocci warnings Message-ID: <20160109005004.GA58406@roam> References: <201601090859.rNB9E9Y6%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1452292166-20118-3-git-send-email-richard.dorsch@gmail.com> 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-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org drivers/gpio/imanager-gpio.c:170: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: Richard Vidal-Dorsch Signed-off-by: Fengguang Wu --- imanager-gpio.c | 1 - 1 file changed, 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/drivers/gpio/imanager-gpio.c +++ b/drivers/gpio/imanager-gpio.c @@ -167,7 +167,6 @@ static int imanager_remove(struct platfo static struct platform_driver imanager_gpio_driver = { .driver = { - .owner = THIS_MODULE, .name = "imanager_gpio", }, .probe = imanager_gpio_probe,