From patchwork Wed Jun 19 17:29:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 11004887 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 84E1914DB for ; Wed, 19 Jun 2019 17:36:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7110627CF3 for ; Wed, 19 Jun 2019 17:36:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 655A128607; Wed, 19 Jun 2019 17:36:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1B7C127CF3 for ; Wed, 19 Jun 2019 17:36:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=lCdK5TZiIn0f+T2aUUMLOGhazs11ar/N43HAylT4G0Q=; b=KZpZCF3ni4Re4cXp0L8f8/n27N U2puQ089ZrF26HDm8FN43Dz/LHowMDePB6yN9hgjjXgXtai121sOlLSXZeWzE53YfVrLOy0RFZakV 0alkOqxSzGHlloQ6ARhSDiCposx23ScVxfBfSZh4MQ8Bv6livIBqG0NJDqtcmfXdaSGYBgDALOd88 IxLf02a0LrjJdLSc8z87SrtjsrUpqIiMwYIAPDPryHCTxJaMxlnYuhcp1a77jTw+iurAOAErSq4Ch p7yLySVcATM51A7qcMANatiWx/kcs/L73eLsmS0Gqigrk4Vg2xgP3JaIxXiMU8tDyksCQcxfHi2JL D3+qcUIQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hdeVK-0005gL-9Z; Wed, 19 Jun 2019 17:36:14 +0000 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hdePR-0007gy-LG for linux-arm-kernel@lists.infradead.org; Wed, 19 Jun 2019 17:30:15 +0000 Received: by mail-pg1-x541.google.com with SMTP id f25so35024pgv.10 for ; Wed, 19 Jun 2019 10:30:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=prwAII+ZGtojVUuaXNz0SCoaMA6E9CoFK+EWZu9cgw8=; b=s9Fe7VHL9KBzy6CsGS5e6Qn+rQ6tQgjBqnBuCyLjiEo+b+wDqTaXrJu9bqAARnoj3Z L2zU2tR5yEncgSWWAWk/8Q/xlNuoe6ZKWkwacid6LANFuwCd0bgLnKWo3TrKc/UNplKd D6KjqCWnQSw5Ps4Tz55M3yFubX9r7yNb3JRdcJGNnjwqiOjWCJcy/RRgF/p2dyHut++k rmVuS840X2wLtBo/hmtzcRGkHr8nbT205qJRT4oS/vZ0gRvLDxyRIveNMjYoHINQcftr 24kqNvun9dcx4bMMJQHsl1wXqdQn4zZCXJArqgV58+5JwUIND+qPKDi5u1LmUr75UrYZ YMQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=prwAII+ZGtojVUuaXNz0SCoaMA6E9CoFK+EWZu9cgw8=; b=M+aV41cljbqbJXjUz2BhZCFQuAWz0oQbktOvUCipJvOEE+PY4NuL6MIGcVrgqy+gV7 8btt6tArWULHgtTYKmzk/F6GThLAJwyYmOiT4jQ4HB/NRzOTmDjaECYcJEEHjH2fptnV qA6iZwLyAlX1gCSDNjB0E7N940FPWgjUXSN/JoF7gIcqe4F6WEInBW4qemw5H7/gIkOP 0WeJdS/8pReDs8Zpnc2dm4mBSoPUZDw4NxtFMOB+JeSmn+8HPlxZeWaI6yuJxH0YUK20 WfyWdJJEwKIyIu72EWiOayLb6+8tCnVChXxHPgzR3LXxvnurWMZ9R97rbZrmRzRTr0eE wjXw== X-Gm-Message-State: APjAAAU3W8BS87V8tMq3EzFTWCw1DUE3RmmV2MhgKNd3R++kguAWvsGV u0iw6km3Vfwbh7wstjWbmLNqCKoBMxagaQ== X-Google-Smtp-Source: APXvYqyrQtjUmiZrlYv5ebeeSSnbptnwGGapYTRB2F7uvoXj9xSsyd1PSpAWKvGK7vzycX5oaBUw4g== X-Received: by 2002:a17:90a:3247:: with SMTP id k65mr3591993pjb.49.1560965406693; Wed, 19 Jun 2019 10:30:06 -0700 (PDT) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id g2sm31348406pfb.95.2019.06.19.10.30.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Jun 2019 10:30:06 -0700 (PDT) From: Mathieu Poirier To: gregkh@linuxfoundation.org Subject: [PATCH 16/45] coresight: etm3x: Rearrange cp14 access detection Date: Wed, 19 Jun 2019 11:29:20 -0600 Message-Id: <20190619172949.4522-17-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190619172949.4522-1-mathieu.poirier@linaro.org> References: <20190619172949.4522-1-mathieu.poirier@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190619_103010_054034_A72BF4D5 X-CRM114-Status: GOOD ( 13.18 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Suzuki K Poulose As we are about to refactor the platform specific handling, move the DT property handling to generic helpers. Signed-off-by: Suzuki K Poulose Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etm3x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtracing/coresight/coresight-etm3x.c b/drivers/hwtracing/coresight/coresight-etm3x.c index 9c92491d3fb2..fa2f1417cafb 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 */