Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3041068pxb; Mon, 16 Nov 2020 04:22:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJx+SBNGz2rUXmDmka5byw2xej69b5s8qNEUOP4P5GxcKVOBj+hEaJB3vafhqQMPSySnFw+X X-Received: by 2002:a17:906:2683:: with SMTP id t3mr14899163ejc.414.1605529344118; Mon, 16 Nov 2020 04:22:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605529344; cv=none; d=google.com; s=arc-20160816; b=Lu31m+FW9vhnvoyxVzzORJ4zzEZ3xa6US1LxChs85LFkWlOA52hYMCaxWMsw5OZizT dgGbC9I0haQmHNdkQQqY/gKXXqXKFJhVpEG9xas8ZUbKuW8FFvhFgVwXZOMnKptNlJSJ MXCr3hFn22QkPgDlR3bsQFtWFryvkdK8qyyX9/fITUWhfTSU6xTV50QSjLxBvog5dK7d Rifi8I/Z/gW3vqTNJYqnCepDtqMezo2a8zLvEwHmRUIeQ9Gpi+NlP7d57YU56XXFHRB/ pRgV86/Ex0iYfZPFHHhIXye9oYevgu5U6nMfW1MV/GUnnmlhpIW5V6KDieMTk0Igajny u8ug== 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=3zZCSOx0+LidYziZlaQF77XAscl035DOR0F35RdOZr8=; b=SbawQIS2hpVsD0LeSPmMaB41kT7E4UEcHoKoQwKpnoT6bOgF3L5Gpm0ZIW1jHLCOXZ MjJewLO8x07dnpehx38zq4Ytsa287GXDJLmmPKKv9I3ZMUJunrFhWddC9uK6QGoYx4yH HWRY7UedcEeOgaQ+S3wxvgJrjFCRvfFh/jrvGiW4YIV+M1Sg7Lw3Eq20NhYRe4fUMofX hgLzz7Q8i7yGTjs07+qWTmjAh703UhGIp7AtV/GwoMfFZ3BkuU84+3R93SWxBnhPpNf0 i2RA0t4yGZ4QWQnPrMhqaz5PMd/tkobsE72PkV41rh3yOAIhFqMvEHJyeMKC2Mj+mx49 8+Vg== 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 f23si9948703ejc.182.2020.11.16.04.22.01; Mon, 16 Nov 2020 04:22:24 -0800 (PST) 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 S1729971AbgKPMRY (ORCPT + 99 others); Mon, 16 Nov 2020 07:17:24 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:7249 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727895AbgKPMRY (ORCPT ); Mon, 16 Nov 2020 07:17:24 -0500 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CZSk83v03zkZ12; Mon, 16 Nov 2020 20:17:04 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Mon, 16 Nov 2020 20:17:13 +0800 From: Zou Wei To: , , , , , CC: , , Zou Wei Subject: [PATCH -next] ASoC: samsung: fix platform_no_drv_owner.cocci warnings Date: Mon, 16 Nov 2020 20:29:00 +0800 Message-ID: <1605529740-68757-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 ./sound/soc/samsung/midas_wm1811.c:534: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 Signed-off-by: Zou Wei --- sound/soc/samsung/midas_wm1811.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/samsung/midas_wm1811.c b/sound/soc/samsung/midas_wm1811.c index d03340c..1f9a553 100644 --- a/sound/soc/samsung/midas_wm1811.c +++ b/sound/soc/samsung/midas_wm1811.c @@ -531,7 +531,6 @@ static struct platform_driver midas_driver = { .driver = { .name = "midas-audio", .of_match_table = midas_of_match, - .owner = THIS_MODULE, .pm = &snd_soc_pm_ops, }, .probe = midas_probe, -- 2.6.2