Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3759096pxk; Tue, 22 Sep 2020 01:34:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytB49NFwYI3BXjl2DQPOyUtCJByqA2S2iA9X8VpwuObPLMyALcPsC4J5FAMvShbwAIw11g X-Received: by 2002:a05:6402:1641:: with SMTP id s1mr2966140edx.66.1600763651085; Tue, 22 Sep 2020 01:34:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600763651; cv=none; d=google.com; s=arc-20160816; b=WTBsk/CHJQMAL+dTpLemZKbpr3j9v65QJtdgkIJEVIh1SYe2ysw7GwKuxN5tDWW5Nc zJ/m5uK0ievTxHfhGePmYcIb9TWmHuV2W2RSvgqkvTh1hnRovj5cHRoNloeJFPLs3PUy bSHlSopcnHmh2hEhC2WeelSVD0mH6MEOH1zztB96eCp4mjN7dIzZxHnp3lzTIPhwXAGb FDN07q84u3wIJfVHGoqvSf+cwdknlK1QzZPJM+XY7lyqHBBFLoniMN7iaX0E3zFw3GQg +Wp4MUkUSFXNUMfdxDf9Fx3XJ4N80WWpVSdiJoZdd+MROULKWj0iwpY2a1V8M1iZIvOg v3xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=sDYUtXYZpv1JkNV95euYTJYj0hF81PbM2ZIXE45t+7E=; b=kemmcpkkEOctAww/isBRjgA2flTWFel0UeJI/pFInwuhHSvRv9EB9JiUsPYKKdlOaT nFvOix3EPxkuTEgqym/Z3dcifTatbiHKZgYHgkEZRs6tMjtT9iXQG7ZwredTC0lTDvL5 gAsTTy+BuifYsgWP0FNgs2tYVRNXkZhw99Tpdp9eJEYcJ4XhPo+LStr2a2Df6ExPg7j+ Y+wlMewPwtv7iT8OBPRuE3xCw13Z+VLOnEwP+ipT6R1ipPSoYMU4cgUNrAjDPFRvNBZ0 L1n4iV/O8Fu4INR1oImHP6s2dfKH4I4jtlvcL9NCVHgBFCeu/4Q2QhRi7fmyhGLXU/JB 6nFA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g10si10281185edp.138.2020.09.22.01.33.48; Tue, 22 Sep 2020 01:34:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730122AbgIVHnb (ORCPT + 99 others); Tue, 22 Sep 2020 03:43:31 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:13819 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729751AbgIVHnb (ORCPT ); Tue, 22 Sep 2020 03:43:31 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id D8E4EDAF55F83602FF15; Tue, 22 Sep 2020 15:43:28 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Tue, 22 Sep 2020 15:43:18 +0800 From: Zou Wei To: , , CC: , , , , Zou Wei Subject: [PATCH -next] clk: mediatek: fix platform_no_drv_owner.cocci warnings Date: Tue, 22 Sep 2020 15:51:05 +0800 Message-ID: <1600761065-71353-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ./drivers/clk/mediatek/clk-mt6765.c:912: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 Fixes: 1aca9939bf72 ("clk: mediatek: Add MT6765 clock support") Signed-off-by: Zou Wei --- drivers/clk/mediatek/clk-mt6765.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/clk/mediatek/clk-mt6765.c b/drivers/clk/mediatek/clk-mt6765.c index db8db1b..d77ea5a 100644 --- a/drivers/clk/mediatek/clk-mt6765.c +++ b/drivers/clk/mediatek/clk-mt6765.c @@ -909,7 +909,6 @@ static struct platform_driver clk_mt6765_drv = { .probe = clk_mt6765_probe, .driver = { .name = "clk-mt6765", - .owner = THIS_MODULE, .of_match_table = of_match_clk_mt6765, }, }; -- 2.6.2