From patchwork Thu Oct 27 22:34:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fengguang Wu X-Patchwork-Id: 9400627 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 3465060588 for ; Thu, 27 Oct 2016 22:37:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 193672A20C for ; Thu, 27 Oct 2016 22:37:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A75C2A303; Thu, 27 Oct 2016 22:37:27 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9F6FD2A20C for ; Thu, 27 Oct 2016 22:37:22 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bztHI-000316-Jm; Thu, 27 Oct 2016 22:36:04 +0000 Received: from mga03.intel.com ([134.134.136.65]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bztHF-0002wA-2W; Thu, 27 Oct 2016 22:36:01 +0000 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP; 27 Oct 2016 15:35:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos; i="5.31,406,1473145200"; d="scan'208"; a="1076913523" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by fmsmga002.fm.intel.com with ESMTP; 27 Oct 2016 15:35:38 -0700 Received: from kbuild by bee with local (Exim 4.84_2) (envelope-from ) id 1bztHf-000MYV-Pi; Fri, 28 Oct 2016 06:36:27 +0800 Date: Fri, 28 Oct 2016 06:34:37 +0800 From: kbuild test robot To: Minghsiu Tsai Subject: [PATCH] [media] media: fix platform_no_drv_owner.cocci warnings Message-ID: <20161027223437.GA18608@lkp-hsx03.lkp.intel.com> References: <201610280623.yEQ4DZSc%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <201610280623.yEQ4DZSc%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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161027_153601_204398_2013449F X-CRM114-Status: GOOD ( 10.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, Hans Verkuil , linux-mediatek@lists.infradead.org, kbuild-all@01.org, Matthias Brugger , Mauro Carvalho Chehab , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP drivers/media/platform/mtk-mdp/mtk_mdp_core.c:284: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: Minghsiu Tsai Signed-off-by: Fengguang Wu --- mtk_mdp_core.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/media/platform/mtk-mdp/mtk_mdp_core.c +++ b/drivers/media/platform/mtk-mdp/mtk_mdp_core.c @@ -281,7 +281,6 @@ static struct platform_driver mtk_mdp_dr .remove = mtk_mdp_remove, .driver = { .name = MTK_MDP_MODULE_NAME, - .owner = THIS_MODULE, .pm = &mtk_mdp_pm_ops, .of_match_table = mtk_mdp_of_ids, }