Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp622514pxb; Tue, 3 Nov 2020 08:14:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJw3F0UqkFXCNaTdw+06oesJHiAQgnCLHK5hVMF/j6KgROPrIgMzq5QU3aHDPIxVbnuAYBq9 X-Received: by 2002:aa7:d591:: with SMTP id r17mr1823048edq.274.1604420076237; Tue, 03 Nov 2020 08:14:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604420076; cv=none; d=google.com; s=arc-20160816; b=msnNjpLybnGvvqDOQV3q9Eo+fJuX6wnaEdGGEkT2bF9LebRIaveoJwg933ziYyyLNt rEOZinQMz77oM2EzP478+OSJwznxsbMrauD3tUylxbY2KDTwxRJfPp5Fa2jlfDNE+piM me6/H9XeGIwpXQDr2M7Xiwb6bWj0NiugKN9KLzYAxnQ6UZWhI8ePvJji2hSj+t0DXTnW OTN2H8RfEXB03Nzf+pbQcuRriSPIGwU6NiHQpIX2Otvs4046Td6VI1K8JpREho4L5Z1u V/KWxNkkeOglh1GIhWYBPlTbsrraSIZ1mWshtjb3MSx2C8pxhSoq6+33apvtIJHYQNue 8vEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=l1ro1Lxvrl7gs3AZydmjoaVsX0+iaNCcctscSnkcqnc=; b=1CLOySyGqHb2VLHwe6YtgUnuamtf7s4S6T5c5gPZkSH6bM2aNDe0mdYGBFlUUijj4o iEFkiEBGxYErkExISbB2r6bP5z1xYhC2lguRpjgO5ZFEt9gubsLziLoRkUxN8ooEaLPD xSssficF7QtZlqkLOvvMnUTuqTeA9pZujAhd05ejKOi8yI8mONz1IL7l50eV4Cm29F/S tcKQ1MOdk68Johet25vv7NV8jHmqRCxrLelfsUx3FJoNdwDEUiGd0/vgBfx5V2Zo2Omt sxTzN5XSw7Cj5LCpRDwsOnWfRwdUwnMH9XD+LmGw4KHt5YpdQ1hu1P79blF1PUrF/n/i iF0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=M4I1V0JI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a1si12984667ejt.206.2020.11.03.08.14.11; Tue, 03 Nov 2020 08:14:36 -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; dkim=pass header.i=@linaro.org header.s=google header.b=M4I1V0JI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728161AbgKCQMb (ORCPT + 99 others); Tue, 3 Nov 2020 11:12:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725993AbgKCQMa (ORCPT ); Tue, 3 Nov 2020 11:12:30 -0500 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7938C0613D1 for ; Tue, 3 Nov 2020 08:12:30 -0800 (PST) Received: by mail-pg1-x544.google.com with SMTP id r10so14023047pgb.10 for ; Tue, 03 Nov 2020 08:12:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=l1ro1Lxvrl7gs3AZydmjoaVsX0+iaNCcctscSnkcqnc=; b=M4I1V0JI8M9T9QZVAfPJ0Hya0JkBihCise1QUaNdIOipsmhywpCxPXK7Sk74GW/ICG dZVv0zCOTYnRn52uJLM8/OvNVou7mqHV0H9AFUWc8rmmgVrKRpSdRJNzQDiT16KR7FgT ny2EmeXN6anD+FvA8gzt0Dfv7U88Ggve+mFNSG3TTrmVedaTmdJOcX2e0Teh3x0j/Y7h dPuMZRYsGNPqXlbeddCop6E2wEu16hx8xa9K9c8HMNvBaybIfSuqFi9K84T+YjdIy6bO HHyfbeGEGaC6K0sAgSRf0RpcW+cL+lsHlFtwGYeu5wWALB7aPEYOTyY8F3ftgiu+mUnM R4hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=l1ro1Lxvrl7gs3AZydmjoaVsX0+iaNCcctscSnkcqnc=; b=cQQWi0WnAHMlWlFcZ/zHWEZENrdRD9yf6miK06LpVhnVA7bOeLmk7UEVAbDNoM7mY+ NpvhQYrSijgQJB11Ub+4A/bwm2+ZTVCoBNV1miokb3RyNDM/x6dTytGhSvUZcrW3nS0M S33mElU/FnYj9X1bSo9xoQvM4ot6+hYzmVkj1Cz1k5QR3m0qxomZiUeOwZR9uwlA1ixB LDJ6McAXoTrCRDlqFwGovjkZOm3x3iEImcyZi1SSl9RiYc5uRsfSlNQl4N2Pq4uBu+Ss WBc3aALFFMrTV1KqI1gN91O/RUFKrsA7itBriKmr0pPlUIj9wnSxj3nx2quUsHGyFsUK KM/w== X-Gm-Message-State: AOAM531nCL4xLnsYR9UKdQIKijngF0g90PYECPOuZYrJ20P+qAyK2Vr9 79S47MTB+rAxQkECXNJs2GBmtw== X-Received: by 2002:a63:fb4a:: with SMTP id w10mr17269993pgj.285.1604419950333; Tue, 03 Nov 2020 08:12:30 -0800 (PST) Received: from xps15 (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id y23sm3912228pju.35.2020.11.03.08.12.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Nov 2020 08:12:29 -0800 (PST) Date: Tue, 3 Nov 2020 09:12:27 -0700 From: Mathieu Poirier To: Qi Liu Cc: suzuki.poulose@arm.com, mike.leach@linaro.org, coresight@lists.linaro.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxarm@huawei.com Subject: Re: [PATCH] coresight: Remove unnecessary THIS_MODULE of funnel and replicator driver Message-ID: <20201103161227.GA2852321@xps15> References: <1604409708-12400-1-git-send-email-liuqi115@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1604409708-12400-1-git-send-email-liuqi115@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 03, 2020 at 09:21:48PM +0800, Qi Liu wrote: > As THIS_MODULE has been set in platform_driver_register(), so remove it > from static funnel driver and static replicator driver to avoid set it > twice. > > Signed-off-by: Qi Liu > --- > drivers/hwtracing/coresight/coresight-funnel.c | 2 +- > drivers/hwtracing/coresight/coresight-replicator.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/hwtracing/coresight/coresight-funnel.c b/drivers/hwtracing/coresight/coresight-funnel.c > index af40814..39be46b 100644 > --- a/drivers/hwtracing/coresight/coresight-funnel.c > +++ b/drivers/hwtracing/coresight/coresight-funnel.c > @@ -356,7 +356,7 @@ static struct platform_driver static_funnel_driver = { > .remove = static_funnel_remove, > .driver = { > .name = "coresight-static-funnel", > - .owner = THIS_MODULE, > + /* THIS_MODULE is taken care of by platform_driver_register() */ > .of_match_table = static_funnel_match, > .acpi_match_table = ACPI_PTR(static_funnel_ids), > .pm = &funnel_dev_pm_ops, > diff --git a/drivers/hwtracing/coresight/coresight-replicator.c b/drivers/hwtracing/coresight/coresight-replicator.c > index 62afdde..6772f23 100644 > --- a/drivers/hwtracing/coresight/coresight-replicator.c > +++ b/drivers/hwtracing/coresight/coresight-replicator.c > @@ -374,7 +374,7 @@ static struct platform_driver static_replicator_driver = { > .remove = static_replicator_remove, > .driver = { > .name = "coresight-static-replicator", > - .owner = THIS_MODULE, > + /* THIS_MODULE is taken care of by platform_driver_register() */ I have applied your patch. Next time please version you revisions. Thanks, Mathieu > .of_match_table = of_match_ptr(static_replicator_match), > .acpi_match_table = ACPI_PTR(static_replicator_acpi_ids), > .pm = &replicator_dev_pm_ops, > -- > 2.8.1 >