From patchwork Wed May 22 10:34: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: 164808 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp695242ili; Wed, 22 May 2019 03:37:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwXMKH5MUO+T+dxpxQQfmpjEL47PxzZEuC52KGcgc61XkYxOCmz6AOfYuRPbXmcNdyt/D4 X-Received: by 2002:a63:f813:: with SMTP id n19mr88115887pgh.273.1558521437474; Wed, 22 May 2019 03:37:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558521437; cv=none; d=google.com; s=arc-20160816; b=SxPnhytT06R3OqvG5vkTNTLTFuE+008PKL8VAhwVHUhtcVPWihaAMmPCho+H55wdye 3xtnKmX4veL5hiimFMXvVev86K+/u88rwRIt/1bcydYXBpSzuwmNbNWCJjNi0sfIuL1v 0P30h80dlGRipbklvyEo/4Gw/hA1lBwOUE4TQD6IMPeUc++odPifMUXXZY7xsAqV6WiU 5n2dl+MclQFsLMNLSsocNb8VRpLGT+qgk/wbYxGFbOciehMWd0qnPOMTMGL5oab2Ap5y TEqcEi+I64EzmwrbRr4q8OKsOZbvAiKdrn0R33UhY2EiRL5G7pfIMVqS4EKEGo+qI66i /IZQ== 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=JmZ8HpLVNvuHvmMalTTKEqA5iIyTsDKtgifI61Zt12s=; b=wMmHZdgIuMgpfbz37QMcwTNmL8ozFSQ994nHlxC/ztbkh5NOngb69YZOHO857KHRTf Asw+5fMUqrpnnSUO5VLWfIIm6u52oYAh2hD0RNb6peLdSMXUP9J06LK0QiYPSJ62+ZUZ ALNPZrKGJTIAHjkpQGVGc3Jh3yxffKxYlP3tafI1yzBylaX3FUqySOpDdJ/KSGjbyjsu KJdsFjUOAzvprGtHe6P9ZQl/vh+m6dX8YIA47WUc/4Lccm3Du96PJ3LL6ER0/drei51s +YsqgSN1ZD41Y4GGyOlQrwAic7EE9bwM0VLpspO1Ki3r5CUmWl+BfHsDkYFfOU5lMaou InLA== 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.17; Wed, 22 May 2019 03:37:17 -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 S1729216AbfEVKf1 (ORCPT + 30 others); Wed, 22 May 2019 06:35:27 -0400 Received: from foss.arm.com ([217.140.101.70]:46980 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728438AbfEVKfZ (ORCPT ); Wed, 22 May 2019 06:35:25 -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 8B62A15BF; Wed, 22 May 2019 03:35:24 -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 7BFCF3F575; Wed, 22 May 2019 03:35:23 -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 05/30] coresight: tpiu: Clean up device specific data Date: Wed, 22 May 2019 11:34:38 +0100 Message-Id: <1558521304-27469-6-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 Switch to using the coresight device instead of the parent amba device. Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tpiu.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) -- 2.7.4 diff --git a/drivers/hwtracing/coresight/coresight-tpiu.c b/drivers/hwtracing/coresight/coresight-tpiu.c index 63d9af3..4dd3e7f 100644 --- a/drivers/hwtracing/coresight/coresight-tpiu.c +++ b/drivers/hwtracing/coresight/coresight-tpiu.c @@ -49,13 +49,11 @@ /** * @base: memory mapped base address for this component. - * @dev: the device entity associated to this component. * @atclk: optional clock for the core parts of the TPIU. * @csdev: component vitals needed by the framework. */ struct tpiu_drvdata { void __iomem *base; - struct device *dev; struct clk *atclk; struct coresight_device *csdev; }; @@ -75,7 +73,7 @@ static int tpiu_enable(struct coresight_device *csdev, u32 mode, void *__unused) tpiu_enable_hw(drvdata); atomic_inc(csdev->refcnt); - dev_dbg(drvdata->dev, "TPIU enabled\n"); + dev_dbg(&csdev->dev, "TPIU enabled\n"); return 0; } @@ -104,7 +102,7 @@ static int tpiu_disable(struct coresight_device *csdev) tpiu_disable_hw(drvdata); - dev_dbg(drvdata->dev, "TPIU disabled\n"); + dev_dbg(&csdev->dev, "TPIU disabled\n"); return 0; } @@ -139,7 +137,6 @@ static int tpiu_probe(struct amba_device *adev, const struct amba_id *id) if (!drvdata) return -ENOMEM; - drvdata->dev = &adev->dev; drvdata->atclk = devm_clk_get(&adev->dev, "atclk"); /* optional */ if (!IS_ERR(drvdata->atclk)) { ret = clk_prepare_enable(drvdata->atclk);