Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752840AbbKPDGJ (ORCPT ); Sun, 15 Nov 2015 22:06:09 -0500 Received: from mga03.intel.com ([134.134.136.65]:12569 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752783AbbKPDFp (ORCPT ); Sun, 15 Nov 2015 22:05:45 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,300,1444719600"; d="scan'208";a="851677936" Date: Mon, 16 Nov 2015 11:04:15 +0800 From: kbuild test robot To: James Bans Cc: kbuild-all@01.org, LINUXKERNEL , Liam Girdwood , Mark Brown , David Dajun Chen , Support Opensource Subject: [PATCH] regulator: pv88090: fix platform_no_drv_owner.cocci warnings Message-ID: <20151116030414.GA28438@lkp-nhm1> References: <201511161150.M8IeW1c7%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201511160213.tAG2DCwC038467@krsrvapps-01.diasemi.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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 995 Lines: 28 drivers/regulator/pv88090-regulator.c:471: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: James Ban Signed-off-by: Fengguang Wu --- pv88090-regulator.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/regulator/pv88090-regulator.c +++ b/drivers/regulator/pv88090-regulator.c @@ -468,7 +468,6 @@ MODULE_DEVICE_TABLE(of, pv88090_dt_ids); static struct i2c_driver pv88090_regulator_driver = { .driver = { .name = "pv88090", - .owner = THIS_MODULE, .of_match_table = of_match_ptr(pv88090_dt_ids), }, .probe = pv88090_i2c_probe, -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/