Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756326AbdDMU5t (ORCPT ); Thu, 13 Apr 2017 16:57:49 -0400 Received: from mga02.intel.com ([134.134.136.20]:56165 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755809AbdDMU5r (ORCPT ); Thu, 13 Apr 2017 16:57:47 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,195,1488873600"; d="scan'208";a="77056728" Date: Fri, 14 Apr 2017 04:57:35 +0800 From: kbuild test robot To: Venkat Reddy Talla Cc: kbuild-all@01.org, Mark Brown , Laxman Dewangan , Liam Girdwood , linux-kernel@vger.kernel.org Subject: [PATCH] regulator: tps65132: fix platform_no_drv_owner.cocci warnings Message-ID: <20170413205730.GA23818@lkp-ib03.lkp.intel.com> References: <201704140421.WwQelRhN%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201704140421.WwQelRhN%fengguang.wu@intel.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: 720 Lines: 23 drivers/regulator/tps65132-regulator.c:274: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: Venkat Reddy Talla Signed-off-by: Fengguang Wu --- tps65132-regulator.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/regulator/tps65132-regulator.c +++ b/drivers/regulator/tps65132-regulator.c @@ -271,7 +271,6 @@ MODULE_DEVICE_TABLE(i2c, tps65132_id); static struct i2c_driver tps65132_i2c_driver = { .driver = { .name = "tps65132", - .owner = THIS_MODULE, }, .probe = tps65132_probe, .id_table = tps65132_id,