From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758073AbcHYGqB (ORCPT ); Thu, 25 Aug 2016 02:46:01 -0400 Received: from mga06.intel.com ([134.134.136.31]:51381 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758050AbcHYGqA (ORCPT ); Thu, 25 Aug 2016 02:46:00 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,574,1464678000"; d="scan'208";a="1046923504" Date: Thu, 25 Aug 2016 14:50:30 +0800 From: kbuild test robot To: vadimp@mellanox.com Cc: kbuild-all@01.org, wsa@the-dreams.de, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, jiri@resnulli.us, Vadim Pasternak , Michael Shych Subject: [PATCH] i2c: mux: mellanox: fix platform_no_drv_owner.cocci warnings Message-ID: <20160825065030.GA56099@lkp-sb04.intel.com> References: <201608251408.feJ5zXcz%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1472046988-111956-1-git-send-email-vadimp@mellanox.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 drivers/i2c/muxes/i2c-mux-mlxcpld.c:329: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: Vadim Pasternak Signed-off-by: Fengguang Wu --- i2c-mux-mlxcpld.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/i2c/muxes/i2c-mux-mlxcpld.c +++ b/drivers/i2c/muxes/i2c-mux-mlxcpld.c @@ -326,7 +326,6 @@ static int mlxcpld_mux_remove(struct i2c static struct i2c_driver mlxcpld_mux_driver = { .driver = { .name = "mlxcpld-mux", - .owner = THIS_MODULE, }, .probe = mlxcpld_mux_probe, .remove = mlxcpld_mux_remove, From mboxrd@z Thu Jan 1 00:00:00 1970 From: kbuild test robot Subject: [PATCH] i2c: mux: mellanox: fix platform_no_drv_owner.cocci warnings Date: Thu, 25 Aug 2016 14:50:30 +0800 Message-ID: <20160825065030.GA56099@lkp-sb04.intel.com> References: <201608251408.feJ5zXcz%fengguang.wu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1472046988-111956-1-git-send-email-vadimp@mellanox.com> Sender: linux-kernel-owner@vger.kernel.org Cc: kbuild-all@01.org, wsa@the-dreams.de, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, jiri@resnulli.us, Vadim Pasternak , Michael Shych List-Id: linux-i2c@vger.kernel.org drivers/i2c/muxes/i2c-mux-mlxcpld.c:329: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: Vadim Pasternak Signed-off-by: Fengguang Wu --- i2c-mux-mlxcpld.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/i2c/muxes/i2c-mux-mlxcpld.c +++ b/drivers/i2c/muxes/i2c-mux-mlxcpld.c @@ -326,7 +326,6 @@ static int mlxcpld_mux_remove(struct i2c static struct i2c_driver mlxcpld_mux_driver = { .driver = { .name = "mlxcpld-mux", - .owner = THIS_MODULE, }, .probe = mlxcpld_mux_probe, .remove = mlxcpld_mux_remove,