From patchwork Mon Jan 16 23:47:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fengguang Wu X-Patchwork-Id: 9519673 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 145E860209 for ; Mon, 16 Jan 2017 23:48:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0683728447 for ; Mon, 16 Jan 2017 23:48:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EE4E92845B; Mon, 16 Jan 2017 23:48:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC91C28447 for ; Mon, 16 Jan 2017 23:48:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751782AbdAPXsv (ORCPT ); Mon, 16 Jan 2017 18:48:51 -0500 Received: from mga01.intel.com ([192.55.52.88]:8151 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751128AbdAPXsv (ORCPT ); Mon, 16 Jan 2017 18:48:51 -0500 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 16 Jan 2017 15:48:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,241,1477983600"; d="scan'208";a="1094910076" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by fmsmga001.fm.intel.com with ESMTP; 16 Jan 2017 15:48:49 -0800 Received: from kbuild by bee with local (Exim 4.84_2) (envelope-from ) id 1cTH3E-000IyP-Qr; Tue, 17 Jan 2017 07:51:00 +0800 Date: Tue, 17 Jan 2017 07:47:56 +0800 From: kbuild test robot To: Alexander Kurz Cc: kbuild-all@01.org, Sebastian Reichel , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] power: supply: fix platform_no_drv_owner.cocci warnings Message-ID: <20170116234756.GA21086@intel11.lkp.intel.com> References: <201701170752.5rCKgr4i%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <201701170752.5rCKgr4i%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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP drivers/power/supply/max14656_charger_detector.c:317: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: Alexander Kurz Signed-off-by: Fengguang Wu --- max14656_charger_detector.c | 1 - 1 file changed, 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/drivers/power/supply/max14656_charger_detector.c +++ b/drivers/power/supply/max14656_charger_detector.c @@ -314,7 +314,6 @@ static const struct of_device_id max1465 static struct i2c_driver max14656_i2c_driver = { .driver = { .name = "max14656", - .owner = THIS_MODULE, .of_match_table = max14656_match_table, }, .probe = max14656_probe,