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: 9400617 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 6560160588 for ; Thu, 27 Oct 2016 22:36:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4BEE62A1B7 for ; Thu, 27 Oct 2016 22:36:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4074B2A1EA; Thu, 27 Oct 2016 22:36:13 +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 B01C72A1B7 for ; Thu, 27 Oct 2016 22:36:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S943058AbcJ0Wfo (ORCPT ); Thu, 27 Oct 2016 18:35:44 -0400 Received: from mga06.intel.com ([134.134.136.31]:11157 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934322AbcJ0Wfk (ORCPT ); Thu, 27 Oct 2016 18:35:40 -0400 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.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 Cc: kbuild-all@01.org, Mauro Carvalho Chehab , linux-media@vger.kernel.org, Hans Verkuil , Matthias Brugger , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org 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 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.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(-) -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 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, }