From patchwork Tue May 7 10:52:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suzuki K Poulose X-Patchwork-Id: 163489 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:81:0:0:0:0 with SMTP id l1csp1183926ilm; Tue, 7 May 2019 03:54:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqyoGLMV87obONqiipb4tbLVjkxiwSg8vdoeFSn8bW6kszOSuACKI0teLGPnvEPGsJmrA07C X-Received: by 2002:a63:1e5b:: with SMTP id p27mr37803149pgm.213.1557226441066; Tue, 07 May 2019 03:54:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557226441; cv=none; d=google.com; s=arc-20160816; b=fYXbfHmqMGn7g47RhRW26meF4WN8CUUvtYNp3QiXHKmrDxj0MrM4gqPaVc3U3gNOXK cpAMdsNqIOb2D4CGZYyFMU8tHXfK8OVeG8QXT8fWTE2oe0z/QvOO4JrTXIqoA6v37Tht sRYwlUJ3C7KbGqDbyS0g0Risd/xCnb+TJ1swwjOodqGqkmUSe4YR/LFoLpPh29evu0X5 YrO7g9UBq4pjNvL1irmly8m1MC1yFE+W1O6IJxhfrbXMGRh4U/fDoxkLUNCk+zM9UbuT aQqIH1+bTo90LAxB/5i4Oz2yShBlRpg/LA9a9mybi4/fuYw+lMwQIdbgKDRZcHakUnGF RELw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=muYlf0x6qG91MFHhcLMOpy8z3MK476YO/byb6jzAkmQ=; b=bW3fYwD14xQY2a9iEpKxda9+dqfzpDCJa4ZwSg39EtCuZVUtHBbY7FkZwRFnlqoOGI ptTtTaphpUkT9ady+sAia3uYrrsWXEputcpVZNQTiaZNGMyAUDAol1Knl1pyXhbi2V0+ t6pg8U0dGPBArx3xrQQw0Fa2kuPSFb3qZnmZnpmBNe70sAify6nXLORpljBYicyijyhV SEnIoEdxu6aVH9gfDBtlvFyxH/BMY05mf/Dt3zsiESAMMh6uuB1XVc8yD5OGcxoTBMAb JRLQlRJTCDtmZRc0n1/tPrIHywwyEhOWIib6HTfgiU2Wxar6Ls7U3/j0sKs1SzV8ZH5g uDxA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b1si460197pgg.392.2019.05.07.03.54.00; Tue, 07 May 2019 03:54:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727042AbfEGKx7 (ORCPT + 30 others); Tue, 7 May 2019 06:53:59 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:50150 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726976AbfEGKxz (ORCPT ); Tue, 7 May 2019 06:53:55 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5F1EF15AD; Tue, 7 May 2019 03:53:55 -0700 (PDT) Received: from en101.cambridge.arm.com (en101.cambridge.arm.com [10.1.196.93]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 2C1EF3F5AF; Tue, 7 May 2019 03:53:54 -0700 (PDT) From: Suzuki K Poulose To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, coresight@lists.linaro.org, rjw@rjwysocki.net, mathieu.poirier@linaro.org, Suzuki K Poulose Subject: [PATCH v3 10/30] coresight: Rename of_coresight to coresight-platform Date: Tue, 7 May 2019 11:52:37 +0100 Message-Id: <1557226378-10131-11-git-send-email-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1557226378-10131-1-git-send-email-suzuki.poulose@arm.com> References: <1557226378-10131-1-git-send-email-suzuki.poulose@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rename the firmware handling file to a more generic name, in preparation for adding ACPI support. Right now we only support DT and we have all the platform handling code in of_coresight.c. Let us rename the file to coresight-platform.c in order to keep the platform handling in a single place for DT and the upcoming ACPI support. Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/Makefile | 3 +-- drivers/hwtracing/coresight/{of_coresight.c => coresight-platform.c} | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) rename drivers/hwtracing/coresight/{of_coresight.c => coresight-platform.c} (99%) -- 2.7.4 diff --git a/drivers/hwtracing/coresight/Makefile b/drivers/hwtracing/coresight/Makefile index 3b435aa..3c0ac42 100644 --- a/drivers/hwtracing/coresight/Makefile +++ b/drivers/hwtracing/coresight/Makefile @@ -2,8 +2,7 @@ # # Makefile for CoreSight drivers. # -obj-$(CONFIG_CORESIGHT) += coresight.o coresight-etm-perf.o -obj-$(CONFIG_OF) += of_coresight.o +obj-$(CONFIG_CORESIGHT) += coresight.o coresight-etm-perf.o coresight-platform.o obj-$(CONFIG_CORESIGHT_LINK_AND_SINK_TMC) += coresight-tmc.o \ coresight-tmc-etf.o \ coresight-tmc-etr.o diff --git a/drivers/hwtracing/coresight/of_coresight.c b/drivers/hwtracing/coresight/coresight-platform.c similarity index 99% rename from drivers/hwtracing/coresight/of_coresight.c rename to drivers/hwtracing/coresight/coresight-platform.c index 7045930..514cc2b 100644 --- a/drivers/hwtracing/coresight/of_coresight.c +++ b/drivers/hwtracing/coresight/coresight-platform.c @@ -17,7 +17,7 @@ #include #include - +#ifdef CONFIG_OF static int of_dev_node_match(struct device *dev, void *data) { return dev->of_node == data; @@ -295,3 +295,4 @@ of_get_coresight_platform_data(struct device *dev, return pdata; } EXPORT_SYMBOL_GPL(of_get_coresight_platform_data); +#endif