Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp311114ybm; Wed, 22 May 2019 03:39:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqyKQ3Yncav1h0A6OUPNiSIIsnF47vw15srDbqDILO2NijE0l3CKZkTJyFufvE3YWwk+p3r6 X-Received: by 2002:a62:87c6:: with SMTP id i189mr96695154pfe.65.1558521593238; Wed, 22 May 2019 03:39:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558521593; cv=none; d=google.com; s=arc-20160816; b=K1NZ0QlaLDOD9uzBZZ/N617eBqwAahRsXHluBv3G7izi4OK8kLjXUjltm9G602Qgas B9jjDbKTwbgNAstl++pHXZJyxutg6puxgOKTtXezbnzUhZ9KVmRqVyZrxCob/F7bXWoj vnyu2rfA+h8dC9MYq8ug8wtt3U67P0LzZwyQ8262czxRcZrbM8shfdePnluTPcy1fF9n JqmO3/0SjrmxAnOdljgoyj8M3ONlib1b/Uvm7OhvS1lra+X1WfR5rra3Pyz3+FpYP98L ohfYmUFPjOQLONX6pvdWyDT8+gbydZdOFBlfd3xKxGXozdZshGHPdKdCfQJwum0b24iz p+QA== 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 az7si25549724plb.350.2019.05.22.03.39.38; Wed, 22 May 2019 03:39:53 -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 S1729201AbfEVKf1 (ORCPT + 99 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(-) 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); -- 2.7.4