From patchwork Thu Mar 8 19:12:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10268913 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 54E396037E for ; Thu, 8 Mar 2018 19:24:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 426D229993 for ; Thu, 8 Mar 2018 19:24:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 354F229AF0; Thu, 8 Mar 2018 19:24:45 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM 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 DB3E329993 for ; Thu, 8 Mar 2018 19:24:44 +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=x71Y0Vii36kEYpJRS7bmoQF5XTBgf1+ta8thoJRDa5E=; b=gCaQp+CHmv6ckTNDx2mHqMYFuT y5rcg4DwAb0iFUnL4W1YJu5Da4J5Ux+Gq2242biNtNID6zt54BbXJuh3JhNWj4rQE70CN3twbMSzo q50Zoxp92UZ4mUAGyVwDTyCSGC4eiySCmBjbqXaomk+U5w4RcMR6kklNAh7I0Wbzra/NoB1dqOHUH Vxnp8H0mUtB5S2fQQcw5jOpL+wf1AovpqGz1BhxjIrBWqNuICI58miVsGhw8shQs4L6PE3ovUWw1b J584+dk18NqlXo4Jx95uX8UTn/ALiNsF3+cmttF3vIJMrSLIdq2ir8/7IuKlEwF26jlhgmxdt/58M eUPuqzhA==; 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 1eu19d-0002sw-BG; Thu, 08 Mar 2018 19:24:41 +0000 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eu0yG-00024h-1P; Thu, 08 Mar 2018 19:13:14 +0000 Received: by mail-pf0-x241.google.com with SMTP id h11so284274pfn.4; Thu, 08 Mar 2018 11:12:50 -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=TY2DKpW7WHLpB2NINyRFM7IRfCkmCWiagPLT9SWZvR0=; b=X4cwlCxBGftxGW2AOCf9d5VGubpmFW3U1EPiSfS/J+tG7cz5xD4lPQ7J1vT7dhNtj4 3/vzOb1lhUQ1LZwru924e7E1e1khZON+43y7dQu9ezzCI49gEeywS7kIHHA9OBCYs/cg rc5XZBNt3/XpUlStaYBPQ1yBmujyiV8fKVpgBeWjbpQyxGM/+Qy2dpmyIdk2MyBkBzRM 2VLlIgAEE/XzhhQl7vofxM5Lgpi/vA4Lgje4f6CzrlV+osVQ2viKeWf0/knKfrbTN/N8 sg8+Z3H6bul5Essn+OQhHl91C7zj8T26IDbOoOHp+FEwgpxjUYs73QU5/JioOb0Ev4I9 S+bw== 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=TY2DKpW7WHLpB2NINyRFM7IRfCkmCWiagPLT9SWZvR0=; b=mdGsn5bc1n84MDJhpiDvx4xf7jheWCoBsBAGHKEIZgtZouXBtnFpvAt1Fmg5+3vKfl 2UZUTtWeqKWe1BWmjdnwX+uCs0kK5xs3l2ufU9ju6HmQNhilSaV9SyG3SyG6i2wsoeRu 4CwQMeHSop4+wew/+BwQlHoRBXub60+eAAy9MHMxoHCNzDvafegP/d1yDhM1tEjpxPwG OJiqBZLbDIClTDyXSd7hrPus5NqKNgGovoQnkGDwqzBYa0A+dy8M2cJYq4EGXGZqgLkc AG7NhHPyQqCxHuaPLWuTp010LXJTJN4r+fz+RA8ywaGx7lCGNF+dOjkXY+Qa1Ph0K+kk J6LA== X-Gm-Message-State: APf1xPAPHjN2ffha24MB6NL7pO5VG0ITUO0LteVo8nZBcsfa6VPtYWr+ N5tUJIU+pdz6v11FIIYu1+A= X-Google-Smtp-Source: AG47ELsjaNTI8A0iuELxjEQh9glMhHf9/oJqRH/NR757ZaQ+RU437baHwcZX0Kk909lVVpGILeGwow== X-Received: by 10.98.100.69 with SMTP id y66mr27320882pfb.111.1520536369187; Thu, 08 Mar 2018 11:12:49 -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 j64sm47201768pfe.68.2018.03.08.11.12.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Mar 2018 11:12:48 -0800 (PST) From: Andrey Smirnov To: Srinivas Kandagatla Subject: [PATCH v5 19/21] nvmem: rockchip-efuse: Do not use "&pdev->dev" explicitly Date: Thu, 8 Mar 2018 11:12:03 -0800 Message-Id: <20180308191205.26943-20-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180308191205.26943-1-andrew.smirnov@gmail.com> References: <20180308191205.26943-1-andrew.smirnov@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180308_111256_735568_CAF0BDC5 X-CRM114-Status: GOOD ( 10.94 ) 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 "dev" variable for this already. 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/rockchip-efuse.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/nvmem/rockchip-efuse.c b/drivers/nvmem/rockchip-efuse.c index ade8848adf82..b3b0b648be62 100644 --- a/drivers/nvmem/rockchip-efuse.c +++ b/drivers/nvmem/rockchip-efuse.c @@ -268,21 +268,21 @@ static int rockchip_efuse_probe(struct platform_device *pdev) return -EINVAL; } - efuse = devm_kzalloc(&pdev->dev, sizeof(struct rockchip_efuse_chip), + efuse = devm_kzalloc(dev, sizeof(struct rockchip_efuse_chip), GFP_KERNEL); if (!efuse) return -ENOMEM; res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - efuse->base = devm_ioremap_resource(&pdev->dev, res); + efuse->base = devm_ioremap_resource(dev, res); if (IS_ERR(efuse->base)) return PTR_ERR(efuse->base); - efuse->clk = devm_clk_get(&pdev->dev, "pclk_efuse"); + efuse->clk = devm_clk_get(dev, "pclk_efuse"); if (IS_ERR(efuse->clk)) return PTR_ERR(efuse->clk); - efuse->dev = &pdev->dev; + efuse->dev = dev; if (of_property_read_u32(dev->of_node, "rockchip,efuse-size", &econfig.size)) econfig.size = resource_size(res);