From patchwork Wed Jan 3 20:01:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10143073 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 6398460594 for ; Wed, 3 Jan 2018 20:12:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 573B1292B0 for ; Wed, 3 Jan 2018 20:12:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4C0BD292D5; Wed, 3 Jan 2018 20:12:22 +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 EED9F292B0 for ; Wed, 3 Jan 2018 20:12:21 +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=uypf2OkVPufsCE0+ofiwIQPKFe 5S6FYv8DSMRClt3o/FhB/iZ5u/YelZ9KcrrHghBs5FpwcCI4GL1+NmBGd30+ZSmHurT3v/IIhuVA4 HGeEGBzf7PHY89ZYPLSlm/XB1dJVvHKgtpi75JM9Ny6dMR3k+cuwawm/Sk6LllPdHypP8zIlFxMmS e4+zAa4aIptqDwVJow+K3cAtihBNF0aVVaaYGhlJjqrQD/cm55wHyOQIFY4ngUioDioMp4F70uyo3 wM4c7QT5iyzFWdPqdoNYDqwb/8JKrneLSI1Df9Ea8O4sK+ia8A6RWcFq8FJrosudJ7m5Fps2KONvd 3zPwThrQ==; 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 1eWpOR-0004dA-Ft; Wed, 03 Jan 2018 20:12:07 +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 1eWpEa-0004i2-G5; Wed, 03 Jan 2018 20:02:48 +0000 Received: by mail-pg0-x242.google.com with SMTP id i5so1077112pgq.11; Wed, 03 Jan 2018 12:01:46 -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=tumZO2vb9A6JayMnksMVg/bW4eFO5ArWQLNpr/r2639WaL3NSrDuuLhBhQl/H3xjEj 0nJ9yFiq6em+3ecu4evVjXF04UkWkmPUe8qB35ISa/+11gmdj5aLAxxS7phgBOrdF3BW 9guOKb5P94wNmC6XvQ/UNnWb1+e0rFfaPoeWnQp4zShs8guQ44I/CZCIWFW9qbdnipOv 7etklDM3+zR+9rkyVRbd0Eq5i/aOEuT+sQhs+2v0vTh8hl/roVnBr6NJjnEF2cD+O3BJ BSo1iGjOs5dxQtE8CipAObh2A7v6l1X8Pg2WYYm5sDmkTjmEazXFF6PCzOYe7/mBXHKL 9tXg== 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=AEPNQddfBlOjMYKQI5w1FSDmx2kFAMNGdmiUrsZZ0dS63Xbj+sZ6kq9zMk+LyWTcNh Np9KIGXPSufPdoYw/nxnNRZh59WMbAipwlEI2nAHlvceNN2Tsi/PXvHIheBTZqWNWnHl +Og1LfCQAIeCGZUbsvmQ5RGb3oxWOJ+28LeTpoOFiZqUymCuYN3AEKzYt5T5vuiiDyEJ oC79OqeSzLg+0s9gs483tRfaOVbrAOSXEdGbb7jTgStvGIB3kwr0uLizmR15qT9NO7Sn mGo4XIZnzq/cBGKbGpZfm+EBs0aZQFaZztF9uUIQb2OUzOIwj7ITnz2zMt390b6vU1tE okYQ== X-Gm-Message-State: AKGB3mLBr+zziopLUBWYdITZaWLwLNXA+77iTxWc1j4UNuCIyGekQ8ou niKKjV1hhK+XFLV/7DNH7E8= X-Google-Smtp-Source: ACJfBotVzFbxc+zjTH5j8xKPAPMK+slWZ824aWx1Ze8VyLiP2SvQhWGI8FYOkDh9Ec+Ue9O65cq7Og== X-Received: by 10.98.192.202 with SMTP id g71mr2436659pfk.33.1515009704713; Wed, 03 Jan 2018 12:01:44 -0800 (PST) Received: from squirtle.westlake.spaceflightindustries.com ([173.226.206.194]) by smtp.gmail.com with ESMTPSA id b9sm4542209pfl.108.2018.01.03.12.01.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 Jan 2018 12:01:43 -0800 (PST) From: Andrey Smirnov To: Srinivas Kandagatla Subject: [PATCH v3 21/22] nvmem: imx-iim: Do not use "&pdev->dev" explicitly Date: Wed, 3 Jan 2018 12:01:13 -0800 Message-Id: <20180103200114.23922-22-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180103200114.23922-1-andrew.smirnov@gmail.com> References: <20180103200114.23922-1-andrew.smirnov@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180103_120157_373395_D53563C1 X-CRM114-Status: UNSURE ( 7.84 ) 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);