From patchwork Sun Jan 10 10:34:42 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: 565345 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 3BDF21402A0 for ; Sun, 10 Jan 2016 21:36:39 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756895AbcAJKg3 (ORCPT ); Sun, 10 Jan 2016 05:36:29 -0500 Received: from mga11.intel.com ([192.55.52.93]:31199 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756864AbcAJKgV (ORCPT ); Sun, 10 Jan 2016 05:36:21 -0500 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP; 10 Jan 2016 02:36:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,548,1444719600"; d="scan'208";a="857474884" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by orsmga001.jf.intel.com with ESMTP; 10 Jan 2016 02:36:18 -0800 Received: from kbuild by bee with local (Exim 4.83) (envelope-from ) id 1aIDM6-000LCJ-FO; Sun, 10 Jan 2016 18:36:14 +0800 Date: Sun, 10 Jan 2016 18:34:42 +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: <20160110103442.GA153018@lkp-ib04> References: <201601101840.Rv2FSoXk%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1452417086-28600-1-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-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org drivers/i2c/busses/imanager-i2c.c:228: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-i2c.c | 1 - 1 file changed, 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/drivers/i2c/busses/imanager-i2c.c +++ b/drivers/i2c/busses/imanager-i2c.c @@ -225,7 +225,6 @@ static int imanager_i2c_remove(struct pl static struct platform_driver imanager_i2c_driver = { .driver = { - .owner = THIS_MODULE, .name = "imanager_i2c", }, .probe = imanager_i2c_probe,