From patchwork Wed May 22 10:34:44 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: 164807 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp695194ili; Wed, 22 May 2019 03:37:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxa1NQ7//1Q3aLCJugd5ELSaFnTZ1sPeX1m3Zc3dCc2JR+5XGqM3Z1QTV7nlIMdVHZ7+DHy X-Received: by 2002:aa7:8f2f:: with SMTP id y15mr84189203pfr.124.1558521433354; Wed, 22 May 2019 03:37:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558521433; cv=none; d=google.com; s=arc-20160816; b=rBH2hk8Gx6oyo1Zf6XWVL9TasGflG9TrFDkjBc7FW3ZMFQSpEov8I+/20xqtlI91A/ 9iRlNBTOvRvvVi8K0jrKVreTQ/ickNQ00O+UeAgPU5SySGnzEnZFI0cAw/MvRGqU8U+X odYdmCAQM0sd9DuBoheRuaQSItwkn18pdUMwd2h1mr9UY3+w+HkdnO5xtqWaNAMaaJVE DUSITFnfcEwJLXyNH/3/gt3f2rD/HUo4OuidKpsTCkPA+3woe1aRZuVNxkfHmEPkeVvi LHiiBNaNaDj+iNMCh8BEj17a2+gtaYj5n9e4uos2kXDXsGD+re3i1ggnXQwEoFpppLdk pkIw== 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=wOVP9JU8cmqxveEAZ3xYgmqf5N3vjHfhSR99riFlrEKokaaFeyH9RP45Lt+bm6Z5Nk 40pV0h6yxsD6Dd+1/3ZjcKgrJRF/Fp12LZLHuFodzwO5o+LHyJyA0bTZIS9KQm4qV/mH sDzOJAEOEu9GCgTYcRbX4rxVJTsSdZ5yMXO96LzAs4F66jbDYRh8gUr0MxVNI6wCaXh5 Svw6QasLuWK8zzBeHOaBYaDLAxASS/dx3s2xt9nboFE3wXkp9BUDHaNtk4dvasFkE63i CCVPX+tYSdI+VMYuDQ6SL1qKs9KhdJHP70y2M1DSamWhmMeZZrX1ATQMsUy524+Px0Kq BUQg== 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 g1si11419771pgq.350.2019.05.22.03.37.12; Wed, 22 May 2019 03:37:13 -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 S1729607AbfEVKhM (ORCPT + 30 others); Wed, 22 May 2019 06:37:12 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:47042 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729271AbfEVKfc (ORCPT ); Wed, 22 May 2019 06:35:32 -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 7678115BF; Wed, 22 May 2019 03:35:32 -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 5D8843F575; Wed, 22 May 2019 03:35:31 -0700 (PDT) From: Suzuki K Poulose To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, mathieu.poirier@linaro.org, coresight@lists.linaro.org, Suzuki K Poulose Subject: [PATCH v4 11/30] coresight: etm3x: Rearrange cp14 access detection Date: Wed, 22 May 2019 11:34:44 +0100 Message-Id: <1558521304-27469-12-git-send-email-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1558521304-27469-1-git-send-email-suzuki.poulose@arm.com> References: <1558521304-27469-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 */