Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp502469pxb; Tue, 3 Nov 2020 05:26:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJzcFwfE7FCHVqztAlbMi/KuI75XXvhDPwnw5zLuOVMG2EK7SU3KaW+r9ZS2lGFjSQ0Fs5Go X-Received: by 2002:a17:907:1112:: with SMTP id qu18mr19679166ejb.507.1604409978582; Tue, 03 Nov 2020 05:26:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604409978; cv=none; d=google.com; s=arc-20160816; b=GxmIDIYRodnuA+7asEbNdSTtco8uByr5sFJgS6wfgtkoqZsGuXCiGQzktlAaqknQI9 oGNVjmn+y6RMiqoJdOT5pa/ox/SRrHcI345GsiKKSAM02TNi5hYh2bBzRGXQmru2L80l maJWm/yWg6J53HYzKVLRL8i9dFd1Q8yIQv6Yen9PJZaPIREA6vbcIdopUTX9ImkVubVn a/apsi0mJD5F4iIDUTVGvIgb2TBEk+hDYVlvK5cSdz8tpgtt3YH1pikACnb3xjSKGm9X DsM3dJmpFD05qrkFwrqyGtJSHb5gOVsMwT7x4d9St4FgyxGgvYhE/wR08Fw6zq8dNWHR DTXA== 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=AX00YQxihAqCn+X26iW1sXRZZrY6w/MorKWWSnDa6ko=; b=Cgtb7yw4BX0XNy/bLFOyWBnLrhWL9FHMYUiUSG3tTeOvosOQzpe5dbsgQWlFxeAhp+ UwVmYtlpH+YLgq/jdj/SzHrrd2Hyzndm0M1CDvqlWQiJx32jApcse2E4Aw+uN+4xeZ6+ s/GunlIQE9P60ZuLe2q9qjtQ/NuOylcj315hOUMDq+mbGCpew7Hgrq2yRBqaxSUVLJOa fiJNzHcLE0xZLDLiAawin6PlJ/dFCYcYk5tJ0WB10dX8HwmgFdIlgmKuQVqUciPgRcJM zQvtVwCgMoCE+AoliQ7sZVGldqIR8GjimJpFmGKo+qEbXEphR/vleTs4uYZVUc9jCuNk 6zdg== 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 e7si13072162edu.247.2020.11.03.05.25.56; Tue, 03 Nov 2020 05:26:18 -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 S1729218AbgKCNX2 (ORCPT + 99 others); Tue, 3 Nov 2020 08:23:28 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:7042 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726047AbgKCNX1 (ORCPT ); Tue, 3 Nov 2020 08:23:27 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CQVpg09mjzhgJV; Tue, 3 Nov 2020 21:23:23 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Tue, 3 Nov 2020 21:23:13 +0800 From: Qi Liu To: , , CC: , , , Subject: [PATCH] coresight: Remove unnecessary THIS_MODULE of funnel and replicator driver Date: Tue, 3 Nov 2020 21:21:48 +0800 Message-ID: <1604409708-12400-1-git-send-email-liuqi115@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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() */ .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