From patchwork Mon Jan 1 23:23:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10139799 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 2944A601A1 for ; Mon, 1 Jan 2018 23:36:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1BB0728717 for ; Mon, 1 Jan 2018 23:36:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1084E28725; Mon, 1 Jan 2018 23:36:48 +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_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 A180628717 for ; Mon, 1 Jan 2018 23:36:47 +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=+w/WB0lIsurPqNq4h76Y/Q7pMD8NMKGRVLaCpJmCm/A=; b=fkvbLHsUZYIH9ZHtyQNSmY16Zl cjAHzNTaPsFztlnnpoy14m5toSDLFukrwhYV42oPeNhhLsqNBoog3YsvOl2TFv4YTIJK0cDjkfsnw GQ7Tkr00Aa3pqFNnrI73V8cSAlAb0/lFw3uu01hyhCy+a1/3FGktxFL94AX5nF9EumTUN5yvtQAXn 61Q+LlQIFgDr1AJ1YL0um/bYqPX7M2oYyYIOO3r6VV2sxjASR53PROwCCnroZxQWes5uDogadytV1 nxUNemEQyjiELZlKEOgvytOppF3q/8prsKbnHrExyXdN0dtyUb4DLFgE4nY3UUSmzqgGS6mAGTzlj 8SCS7rjQ==; 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 1eW9dE-0001lh-Fd; Mon, 01 Jan 2018 23:36:36 +0000 Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eW9RQ-0007ex-W2; Mon, 01 Jan 2018 23:24:53 +0000 Received: by mail-pg0-x242.google.com with SMTP id m127so9277239pga.12; Mon, 01 Jan 2018 15:24:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=GGXmOPYlMl/fcwukF5LQRY69vA18F+QUnc+7LSdaxbc=; b=DhxqJtgVK9aiFT4MqKmlxpQ/3Ss9AONsDdjIWr1j5rT65qPDMrASn110vOfT1esGOa /h7pbq1s/6xMoqLF/aDVDtHefsEZuttYKeVxmz8MWaFXMrU2D4Me6aWv2me8s4sEQvEo /ZUmfawVTZLr7Z2Z5GjvxFYQXIyktYfMLkRrIJzWhPYUOh7sGn6K8Gguighxk69m4S/J afBS0moJ7NV+wlmrCIfsC86CCilZJmHLqgc5c8YqWxTm08Cg8DKnN6SmtOndWFbd+1gC rC607IUc/pdGXO1t/jG9d3JpMrPvUcc0yxIeICw8XscXXBI7Vl82N966r1gvfCGhdjc8 Iqcg== 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=GGXmOPYlMl/fcwukF5LQRY69vA18F+QUnc+7LSdaxbc=; b=eoTtG+Asrr0lIO9/wchYCi8phUogdeFFicrHte6e9RDWV8vBlFOMfhvn7L0VhWB7sG DxCu10eXiG5R6g0NMBdByz1AitZXW8RLs4EKC7iaU/JkBjcGWrNhC3uZcwmfK3rEXGP6 VmiRSS9f9e+Z6Euebs7QyJltrdidw6sQ+/n+hUUdc8RvVsxTSgJP5AQ7MsJtE1xPRv00 +5dPR56f/nxrEndnPNYuu3WLrJqheHMsI5GUn9HRguqQa1N+pOgT5DohCnZQZxnMGOoY GTzXyFgJLNmdSE3wq6FSkjURJj+ZA3Z3MPioyWZy0ZFrxWFDurtNZl4nTwxZqnaY2MHs tWog== X-Gm-Message-State: AKGB3mJta3NGzSlYb90zYNNSYltczu7p7Yfqwwb8U5z6bnku9PANE5BQ RytT0yVPC7Id1XQWaY/+FJk= X-Google-Smtp-Source: ACJfBot1JLq9UO2FaTk54FGBz5uEQr98jdNyJHMhA4VEWFtYj2YHiAw1AB6bBmNn4FLTOVQ4YvqiXA== X-Received: by 10.98.218.24 with SMTP id c24mr44530907pfh.143.1514849053943; Mon, 01 Jan 2018 15:24:13 -0800 (PST) Received: from squirtle.lan (c-24-22-235-96.hsd1.wa.comcast.net. [24.22.235.96]) by smtp.gmail.com with ESMTPSA id t75sm90857156pfi.146.2018.01.01.15.24.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 01 Jan 2018 15:24:13 -0800 (PST) From: Andrey Smirnov To: Srinivas Kandagatla Subject: [PATCH v2 20/21] nvmem: imx-iim: Do not use "&pdev->dev" explicitly Date: Mon, 1 Jan 2018 15:23:09 -0800 Message-Id: <20180101232310.30420-21-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180101232310.30420-1-andrew.smirnov@gmail.com> References: <20180101232310.30420-1-andrew.smirnov@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180101_152425_783394_FDB65303 X-CRM114-Status: UNSURE ( 8.55 ) X-CRM114-Notice: Please train this message. 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: Heiko Stuebner , linux-rockchip@lists.infradead.org, Andrey Smirnov , Kevin Hilman , linux-kernel@vger.kernel.org, Masahiro Yamada , linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Matthias Brugger , linux-amlogic@lists.infradead.org, Carlo Caione , cphealy@gmail.com 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 There's already "dev" variable for that. Use it. Cc: Srinivas Kandagatla Cc: Heiko Stuebner Cc: Masahiro Yamada Cc: Carlo Caione Cc: Kevin Hilman Cc: Matthias Brugger Cc: cphealy@gmail.com Cc: linux-kernel@vger.kernel.org Cc: linux-mediatek@lists.infradead.org Cc: linux-rockchip@lists.infradead.org Cc: linux-amlogic@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Andrey Smirnov --- drivers/nvmem/imx-iim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvmem/imx-iim.c b/drivers/nvmem/imx-iim.c index 635561a441bd..3022bd96bd7e 100644 --- a/drivers/nvmem/imx-iim.c +++ b/drivers/nvmem/imx-iim.c @@ -125,7 +125,7 @@ static int imx_iim_probe(struct platform_device *pdev) drvdata = of_id->data; - iim->clk = devm_clk_get(&pdev->dev, NULL); + iim->clk = devm_clk_get(dev, NULL); if (IS_ERR(iim->clk)) return PTR_ERR(iim->clk);