From patchwork Wed Jun 19 17:29:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 11004871 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 B71451395 for ; Wed, 19 Jun 2019 17:33:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A299528329 for ; Wed, 19 Jun 2019 17:33:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8F619285E2; Wed, 19 Jun 2019 17:33:38 +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 2EB8A285E1 for ; Wed, 19 Jun 2019 17:33:38 +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=T0iRhbSwxffPqHiTWCgZdQeA34riDlP1IWk43PVncfY=; b=D5s4jaymxcfkLPImstoefqFLoF +TWuW2pbeLNL1aSw3sy3oKbx9zSYGP1WeXIehFjrdLUnX4uK46fxFef7d0xS7hx2q+KJVT/oq82Bo Gywdo38tDDPAlB3/idltcpio5EaI0bQtrCOe03xTdBOQYMZ/DR+alNElN9oihW48/A73ZqUgOifWu ZrslwW16bjKzNbC50Zzmnq5OtV+zIIBn5T+dK0skDmaUgWRuweue5Yu3LxYfiLeP19vvcOKblJvBs FiIdDORbB6AZEhgmz9qmctZ2zOtY2KltQjSx9EOySDEmtjIGDA/QfLjRFoT0bfbR69DIjogZZbsMd 9eOkMBGw==; 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 1hdeSm-0002Ut-Mk; Wed, 19 Jun 2019 17:33:36 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hdePK-00079Q-Ej for linux-arm-kernel@lists.infradead.org; Wed, 19 Jun 2019 17:30:04 +0000 Received: by mail-pl1-x643.google.com with SMTP id bi6so78541plb.12 for ; Wed, 19 Jun 2019 10:30:01 -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=Wz7fvVs2eik72LBKTLRReCkmyi964JSVLfODR2C9W48=; b=MKsGjOMowuaChmnzliPs4i1ecoFGnYFNTf2NI96TPsKQKJBP9pv7HN6iQ021021jea GZHneNSCNxXk5SJkiI8MJJp6FMGQZagbxgAyDTkM2C6ohyIqnlk3f+5GGoSPK752mhC9 FMfVTP303t4wvWIwMEmeT8NBHI6+wgxr6UDCGpaKN6l5h/UN/XvUE1nS2AcQVLIX2T2b MWS1tYnw9HDM8NeM1K0Z/vsCDz7Y+aLeuZpEPv9bMwT/rlhz6HhgsAaSgCpF9niUFXse hBXPwoiAJMPLGM2mzdzHWiwYpgZrl6oRDwRXbVxMoz6OOJh+gw5qyqM38mRpb04bcDt9 GlrQ== 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=Wz7fvVs2eik72LBKTLRReCkmyi964JSVLfODR2C9W48=; b=T7PiDhkCkPt6VEfvHMkXC+eyDuJILv3ocld5xaeUyuKV+YLNV1pV3ebNwtUcOmpxH3 X2qnHWla0acaeL7DuhCsQRWAoeKw6cwPoph9M6KeUoUpDGFlP3prSCx8rTeEzm038b0q cxXwy4Sbx9gNteFdb6cM8j0PrZ9KaE+F6L1sDsrAAn2cOnk3tqPVMErd+Eo0mGj43vy6 +4UBxRS24X0TaTT47iwiAZgTM1FK+1txw5XmmH9AWYUfs2IcVde7TQyAl6He/Dd1MBfM ljB631gID3eGsJl4+/TGyQas41FWQqaU1soLwvC8EmdpchsiEepFFOyOkkHD6YWTvchA EhNQ== X-Gm-Message-State: APjAAAXoRPa1JI/dHNQJX/+UTDFKtN2qMs3US6mNa4s523jKpireV2fU cUQxJmbBCR+Ct5Rscrg3LdXo5jhX+atxqA== X-Google-Smtp-Source: APXvYqxDOwDPDA3uyuH+oOerLNz/t3C0T7PgregQAEAYKbamJ8hvmeyBcV2P71FDKYRorsGHyFTZeg== X-Received: by 2002:a17:902:e105:: with SMTP id cc5mr101508087plb.320.1560965401020; Wed, 19 Jun 2019 10:30:01 -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.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Jun 2019 10:30:00 -0700 (PDT) From: Mathieu Poirier To: gregkh@linuxfoundation.org Subject: [PATCH 10/45] coresight: tpiu: Clean up device specific data Date: Wed, 19 Jun 2019 11:29:14 -0600 Message-Id: <20190619172949.4522-11-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_103002_696191_3776B0BA X-CRM114-Status: GOOD ( 13.16 ) 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 Switch to using the coresight device instead of the parent amba device. Signed-off-by: Suzuki K Poulose Signed-off-by: Mathieu Poirier --- 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 63d9af31f57f..4dd3e7f63050 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);