From patchwork Tue May 7 10:52:38 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: 163510 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:81:0:0:0:0 with SMTP id l1csp1185674ilm; Tue, 7 May 2019 03:56:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHkbyEPgOm2Ph3teySZ26IugeeKRigki0S6zvdKgDrUVIa1A0Z1ls62dGa47idLLm5MYGx X-Received: by 2002:a62:5915:: with SMTP id n21mr39298556pfb.180.1557226564007; Tue, 07 May 2019 03:56:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557226564; cv=none; d=google.com; s=arc-20160816; b=Wpt9NI74AE3LQm95FD0rhbdyf4RqEiNKvZ/cUmCSraEs5NGUWxL/wE9gJ3LqBKxbkQ ArSdDICLOwewq3XG+xaaAo3bG3rFMzUO+8ngJ3Y5Je4h510xTBgegbdkspGm9NdwysM7 t689ZkeExxLXO/KhkG/Z7Ni+VkOLkImcSa9ULwvRd87PzVFucT1mkn+WGtcXQaiqEoBu me2XUMYnFkSlVWqNUcdKR1b1jhgSATwSFkJs9/ALafUXk9Rw/NZ1XQ6yF9vkJ1a5rnFc HgeNYX/MoNoBkKjQ+wDiuSYp6PxdoOTBFfTbqCQy/1HXlqzV4hE8tu9mAvSg7MyMQDGU NY4Q== 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=mTs0h+hO1+TTvddaQ1CnPWkZoj6+FzKDve4gNxTXXpg=; b=O3taPqEV7j+Qgz7PKy63AFA8Lyu/8HfRAGIYMLNy4MQxhg0LfePzSXfmLmahzu0fP1 9/W5GulOhDmxmuh0pmXpbdCWeScoI+WL63F+rlQCvIVBbmG0dxowsyCfumltz2/jTr1L lWrCLb9rmZBADFoSwoxeMsiJmUBaaym0do+cUeV8pgGHFwhEE0UQtUsKryZCUP/veRPY +TrDUgpV7UCAt75ROJCmS9UbuCoMOtTgKzaUD+dWOwHYV47pFeCY3FPKyxst9OiaTwRb 1dmL5k/DyiHfrK8TQAPrVFY9Z3qSGvMbqM/MiWBLgfHiE89st9Jftju+BbEPYx0JurHq D1lw== 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 k193si13471353pge.306.2019.05.07.03.56.03; Tue, 07 May 2019 03:56:03 -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 S1727207AbfEGK4C (ORCPT + 30 others); Tue, 7 May 2019 06:56:02 -0400 Received: from foss.arm.com ([217.140.101.70]:50166 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726945AbfEGKx5 (ORCPT ); Tue, 7 May 2019 06:53:57 -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 D825D1682; Tue, 7 May 2019 03:53:56 -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 9BB313F5AF; Tue, 7 May 2019 03:53:55 -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 11/30] coresight: etm3x: Rearrange cp14 access detection Date: Tue, 7 May 2019 11:52:38 +0100 Message-Id: <1557226378-10131-12-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 As we are about to refactor the platform specific handling, move the DT property handling to generic helpers. Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-etm3x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/hwtracing/coresight/coresight-etm3x.c b/drivers/hwtracing/coresight/coresight-etm3x.c index 9c92491..fa2f141 100644 --- a/drivers/hwtracing/coresight/coresight-etm3x.c +++ b/drivers/hwtracing/coresight/coresight-etm3x.c @@ -802,9 +802,9 @@ static int etm_probe(struct amba_device *adev, const struct amba_id *id) return PTR_ERR(pdata); adev->dev.platform_data = pdata; - drvdata->use_cp14 = of_property_read_bool(np, "arm,cp14"); } + drvdata->use_cp14 = fwnode_property_read_bool(dev->fwnode, "arm,cp14"); dev_set_drvdata(dev, drvdata); /* Validity for the resource is already checked by the AMBA core */