From patchwork Mon Feb 12 14:58:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 10213173 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1D29560467 for ; Mon, 12 Feb 2018 15:00:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0ECD228C57 for ; Mon, 12 Feb 2018 15:00:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0380428C91; Mon, 12 Feb 2018 15:00:26 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1F2EC28CF9 for ; Mon, 12 Feb 2018 15:00:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=eIfanygkb/Tup5ARxFldZve/icQGnZVcLgIPPcTD96E=; b=YbDp1HEm2NNHLDkg6iTY8QI5Rq pxVbbKhhF+uXIe0jnkKnhubamjFlkhcZmxh6iRJTL27qn4WVm0E6cFYHiK/l2Y0JdcMcZrU12MUeg rsGJtOnf34vwar8y7i+Askd+af1F0RnnCquGvR0keK/+ppUjlcttWL2aLrzw+stn+qoE5HMmOfD7q A48LzuYTWx29JIgN+Dz5HpMXpLew8lHZsqTBH/6HFENT9i1CWBltqostjUFdGCEyxB5zyNx93qR7r 1NSapFUusy8alZMhNMqkfv36H9041W5Jbfe2/WpQMM+HoP7uLib8tHmAd0JYlEdUL3gRmJNoQbwKC N7G358BA==; Received: from [198.137.202.133] (helo=bombadil.infradead.org) by casper.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1elFaX-0002H1-Kf for patchwork-linux-amlogic@patchwork.kernel.org; Mon, 12 Feb 2018 15:00:13 +0000 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=eIfanygkb/Tup5ARxFldZve/icQGnZVcLgIPPcTD96E=; b=q5UY3IwTAU2zI13EEeRPwkVYGU DdccYvEt3flBKpqteuu/Xm6wzwJgvD0W87fsaaQN9126XqdW0zyRK2ODt0li4oaW9a+b4r40rPIm5 qKqUFVWVw85uTD4sRslTmCMvSWrbfIrC4ZzoALSnp4Z3BcDqnNl7fFd7W1/mXv6B2DX2PVjgvaBbG nyj8jqjlpfnbQVEWTS2mRnBK35cdcx/AtKIUwKIpyAxgpl5bpQWhEEVZCT6bxWwXK1/VBuJoDVKu3 +bNZ4vGjqiFdFKjvuxA3UPrT3G4vocDZ2YnYTBHB10oY9Yhx/WlyvhBWMUu+3YuekSIwbebBvRT7d B8ydGC6w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1elFaA-0002Ap-6O; Mon, 12 Feb 2018 14:59:50 +0000 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1elFZO-00005B-KL for linux-amlogic@lists.infradead.org; Mon, 12 Feb 2018 14:59:05 +0000 Received: by mail-wr0-x244.google.com with SMTP id h9so15499435wre.12 for ; Mon, 12 Feb 2018 06:58:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=1r6UtNaqlpeI8IHSSUmjJQadr+t+nZpwOk9+kyDl2uM=; b=K+1hyVNTgwguCKBZZqkF2GAmfW7eqnHpoiTbNXZV+TwINciYGD307pwR3jjZq6taBB qOJTrZJcOKVBusg8cX5UdMP2I4CJ2zdVQeUZGqsNPrBpOyNOdhi0F6HsbEmNthUmyTuP HuN60by3dBu5SPQ1IxPUAA8iqXmN3HWF3AR8PfjKw9fRUhRSvcYDnx8Y4Bm15pD9deAb tj6zqD9g/O2Ibosm/f+gimY4JMa/DnE2MbS2GB95RfInAwBCBh4jy7uTF0Y/eKEVlHcH SY0U5Kd8PhoHc+7Loyagixk/UBfWrrdKl3BTUzTgo05hL0zqeB9KTpEzfRcJ30tNPbSE Bnjg== 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=1r6UtNaqlpeI8IHSSUmjJQadr+t+nZpwOk9+kyDl2uM=; b=ca5VPkygeiB3sYGiScUn9clgVkKQ+RvdlwyblTBzVA1q27i1726pBlSAEQNISIP50D 0PnKqzCHbKDFK3ak/HonJMM48ljJLixgl2rflGWl5JaGZ2+zNewCNkdlfvqLRohetXiJ QI5Hr9u3f2V5GpYQ+u1A54+vC1704HEZI/V1cVnB/MJkKEGTtdLRkDjVw19XNGV2MbWp F7MB5cY2Tkzq+JQWVblS35C3VmI26aRg6Ns8cvs79QdIORbxIfZRLA2Scirugrq4VxMj wCqiTd5FV6B4XtrT/owJXWMSesA5iwg1u8HNEU4YjMygzSEIfNuKCEKJ2zZ1ho29GByD xpeg== X-Gm-Message-State: APf1xPDgXBT04TSPmT9hSRjoMJE850JkofSdzsWyJhLiUFxLR2uAB1jp FpOvdcwWaXXK6+PtmV3X/gHFUg== X-Google-Smtp-Source: AH8x224psvkarQvcrtbeOO2rm0Qp8RlI/edv8c0nmfAv1sSSZLYrPzb7WdIJa9K+8VlxnGgpIb0/MQ== X-Received: by 10.223.144.46 with SMTP id h43mr6077899wrh.125.1518447531180; Mon, 12 Feb 2018 06:58:51 -0800 (PST) Received: from boomer.baylibre.local ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id p21sm4633218wmc.28.2018.02.12.06.58.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Feb 2018 06:58:50 -0800 (PST) From: Jerome Brunet To: Neil Armstrong , Kevin Hilman Subject: [PATCH v2 01/19] clk: meson: use dev pointer where possible Date: Mon, 12 Feb 2018 15:58:28 +0100 Message-Id: <20180212145846.19380-2-jbrunet@baylibre.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180212145846.19380-1-jbrunet@baylibre.com> References: <20180212145846.19380-1-jbrunet@baylibre.com> X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Turquette , Stephen Boyd , linux-kernel@vger.kernel.org, Carlo Caione , linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, Jerome Brunet MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The 'dev' pointer is directly available in gxbb and axg clock controller, so consistently use it instead of going the through the 'pdev' pointer once in while Signed-off-by: Jerome Brunet --- drivers/clk/meson/axg.c | 8 ++++---- drivers/clk/meson/gxbb.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/clk/meson/axg.c b/drivers/clk/meson/axg.c index 2dc70e0e925c..1f48649a7d2a 100644 --- a/drivers/clk/meson/axg.c +++ b/drivers/clk/meson/axg.c @@ -804,7 +804,7 @@ static int axg_clkc_probe(struct platform_device *pdev) void __iomem *clk_base; int ret, clkid, i; - clkc_data = of_device_get_match_data(&pdev->dev); + clkc_data = of_device_get_match_data(dev); if (!clkc_data) return -EINVAL; @@ -812,9 +812,9 @@ static int axg_clkc_probe(struct platform_device *pdev) res = platform_get_resource(pdev, IORESOURCE_MEM, 0); if (!res) return -EINVAL; - clk_base = devm_ioremap(&pdev->dev, res->start, resource_size(res)); + clk_base = devm_ioremap(dev, res->start, resource_size(res)); if (!clk_base) { - dev_err(&pdev->dev, "Unable to map clk base\n"); + dev_err(dev, "Unable to map clk base\n"); return -ENXIO; } @@ -849,7 +849,7 @@ static int axg_clkc_probe(struct platform_device *pdev) ret = devm_clk_hw_register(dev, clkc_data->hw_onecell_data->hws[clkid]); if (ret) { - dev_err(&pdev->dev, "Clock registration failed\n"); + dev_err(dev, "Clock registration failed\n"); return ret; } } diff --git a/drivers/clk/meson/gxbb.c b/drivers/clk/meson/gxbb.c index a5f25cc1944c..423abcb8ef88 100644 --- a/drivers/clk/meson/gxbb.c +++ b/drivers/clk/meson/gxbb.c @@ -1950,7 +1950,7 @@ static int gxbb_clkc_probe(struct platform_device *pdev) int ret, clkid, i; struct device *dev = &pdev->dev; - clkc_data = of_device_get_match_data(&pdev->dev); + clkc_data = of_device_get_match_data(dev); if (!clkc_data) return -EINVAL;