From patchwork Tue May 7 10:52:32 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: 163486 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:81:0:0:0:0 with SMTP id l1csp1183787ilm; Tue, 7 May 2019 03:53:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwTb6sx0iCVk6VZPuEnQokAn6gLkTIlM49oL/+Kf/MgECCYlv4WBoyrmyPJil7Cws3kqhvQ X-Received: by 2002:a17:902:10c:: with SMTP id 12mr28617756plb.61.1557226431602; Tue, 07 May 2019 03:53:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557226431; cv=none; d=google.com; s=arc-20160816; b=U6UQR+Nv1m4NUOJXbUnq7LUBKPhB2z5vzjWkp6L77fU/Uj4LFx2asiZ5TynuwzNne8 pA8tvCwpCGGmPQfFBhO8CfYm/XLwUVtuLJfJI1JrJsyLqayDbsbpu0obpnJFB3/8mI5+ h0g64z59wgnMbPfHeOOft7NaGPa+nWJViRVyeWk4PWqLDH4uqzfqZXyIoCw3/uQmblhe 33/j7Lk1TT3qTTG5EZgkm5SnMSfPoGedubStg/I8gcRIFMAk2qypEtmHJd+BVcuC0S8s 6Q0beJfUxP4QyiLxiQ5t/4GVoD4IWgBxTc3M04cF5VDlSIv4h9DXfOgND3Tx+9JROVoh wn3w== 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=SPGVQb9yjC7JLG5rQmqq5wjJn03i7ZsdJCCilIC3ALHud3iQ//Jgtm5rD9GN3+pSad 7S0jPEkkGWOj66CfUoz92xSPk20g20VRPemjnREUJAaE+/s0X5kcodUvG7GxEWP6KObq Z9+q+j9pIeC6CUxP4xHsqC4ptMATJTKIQ47vZvBL5G6fan5Tx0GYNICbstqTtaGXz753 og6hOzs6CD11XmOsZ/QiDt/pakjYJOm6Rgs2LuzfpzTCcxI3A60ZY7cXxs0cxHOtEeWQ 6pR4mFlvv4lKo/B+Th6NJanVzPNFUfoWzVwJGsp1gbRoYlJLk9N8Gw1CG4hTJz2rl+YS peUw== 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 14si8890951pfu.76.2019.05.07.03.53.51; Tue, 07 May 2019 03:53:51 -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 S1726869AbfEGKxu (ORCPT + 30 others); Tue, 7 May 2019 06:53:50 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:50088 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726452AbfEGKxs (ORCPT ); Tue, 7 May 2019 06:53:48 -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 18AA21682; Tue, 7 May 2019 03:53:48 -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 D96E73F5AF; Tue, 7 May 2019 03:53:46 -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 05/30] coresight: tpiu: Clean up device specific data Date: Tue, 7 May 2019 11:52:32 +0100 Message-Id: <1557226378-10131-6-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 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);