Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp709603pxx; Wed, 28 Oct 2020 15:10:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbl63FM9iiVV0evd2vRNnf218MwLP2VwK7HOaUJIM7ErPDFHF9dH/hnB/NEjcYrJ2Dx39g X-Received: by 2002:a17:906:b841:: with SMTP id ga1mr1184630ejb.29.1603923040298; Wed, 28 Oct 2020 15:10:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603923040; cv=none; d=google.com; s=arc-20160816; b=NKfeQTTMlCLnwdkZ6JddAIpzfgSK4jDbxSzygsdYqupp75cCRi55IJSinFSSia93nH Lu3MU5PiNpqNgObpZi4SZqIArLXVZoT3LyzGWOyICtgdX6FWt7bm5ZPpPRSLs2FLDgA7 Ia+IzvLNNQSQgU9HkhKWHxue4/LYoTNd9G7NDl2WZloXTKO+KY+gx5lZSv+B+3QoqwE+ kxI9v9zpClSCzq4Hej4E3uAhE0WIe7WRWUGXD/QHvQDfD19M4/gypoVO/50aF0GSnUeS nRBUCs1EmdOBGQ9CKoxfQ9EI+jmIwN1Tv0ywsnScoi6WZpNHQzPueUC9NTfGtV5lb5HC JBkg== 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=LWwO1KH0vXAI6aC6Djnb1LEm9glEHUVen0GpvZPpZsM=; b=r26f/c0f2KkGnqHL20tI8XZAAtkmD2WvR9yG1hfFy/pkmOFmxrShrBY+MwpUpkQ910 uxFAuniEKO7H2yPtYAPTKFBQA0P3qao9T3pTJcRKsebeJztdn0ozPF4fBEfY3mg3Gp3R 71URPMVRDyQ0CAUUFr6IX5TeBfhVBOgqrHNZsb2RVA6ichUDRTBwC6A5ULzT6bT5IxaG Bxw+NFIcUqvqij8EDCJ5KJM+gOCphDT4WO46HGPmWOhqddpHO11LC1fWICtrHkQeWjxp l4nJNPi80er5JxzkMWuqRD8ENl1XCEkxSuq/g8Mw6/GVcbQJDL+MMszMGznlSB6egsfb wzLg== 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 gb8si415021ejc.394.2020.10.28.15.10.18; Wed, 28 Oct 2020 15:10:40 -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 S1730212AbgJ1WIx (ORCPT + 99 others); Wed, 28 Oct 2020 18:08:53 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:7080 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730054AbgJ1WHN (ORCPT ); Wed, 28 Oct 2020 18:07:13 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CLgvl3f8WzLqBM; Wed, 28 Oct 2020 15:59:31 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Wed, 28 Oct 2020 15:59:20 +0800 From: Zou Wei To: , , , CC: , , Zou Wei Subject: [PATCH -next] drm/tilcdc: fix platform_no_drv_owner.cocci warnings Date: Wed, 28 Oct 2020 16:11:19 +0800 Message-ID: <1603872679-105842-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/gpu/drm/tilcdc/tilcdc_panel.c:402: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: 0d4bbaf9f3e5 ("drm/tilcdc: add support for LCD panels (v5)") Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/gpu/drm/tilcdc/tilcdc_panel.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_panel.c b/drivers/gpu/drm/tilcdc/tilcdc_panel.c index 00efc30..4235780 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_panel.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_panel.c @@ -399,7 +399,6 @@ static struct platform_driver panel_driver = { .probe = panel_probe, .remove = panel_remove, .driver = { - .owner = THIS_MODULE, .name = "tilcdc-panel", .of_match_table = panel_of_match, }, -- 2.6.2