From patchwork Fri Mar 9 14:47:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10270825 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 E721760236 for ; Fri, 9 Mar 2018 14:56:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D9A7329E4B for ; Fri, 9 Mar 2018 14:56:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CE37C29E4D; Fri, 9 Mar 2018 14:56:44 +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_SIGNED, DKIM_VALID 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 7489729E4B for ; Fri, 9 Mar 2018 14:56: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=47zugxBc3XPSTuTUAOsYX12UM9vrM1C9BEm0jo21Z2s=; b=gycl3Y27OGKbegZDOEP7g1P27V B9ifG4rmt/qS7kwfJR7RdXd/SamrrpxHuOkbcTW//OeZGNd5R9QyNo8Ih/6sIu5pyTmy+jLkO5CMv vHkhBCmKtDQQ++2sTA8laabb0k1G307nBjZ7NAZPxx4ipcU8JDrPgEdaWOceksq/jjP+pXu7kI33J Ys94so2nEXLFZGGnq72eX4AzpaHbXLDHRg57Fu/nCoYvPyaeLPQdzI1ILlpg3hwVz9d/nJXSbsH5M XifgY+6CvOOZw95/oo0kcb22gNBK24L8TEp2NEOaQSN0U0AW2vybseE1IFkoKsJLC66PpOy56d7E0 dxz9wXAQ==; 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 1euJRo-0004jN-O6; Fri, 09 Mar 2018 14:56:40 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1euJRJ-0004N9-S2 for linux-mediatek@lists.infradead.org; Fri, 09 Mar 2018 14:56:24 +0000 Received: by mail-wm0-x243.google.com with SMTP id s206so3814212wme.0 for ; Fri, 09 Mar 2018 06:56:05 -0800 (PST) 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=eAnGeza+RiSlIVu+0c9b5tCUTCvMOkR19d39VJCDXNg=; b=ANbYRZ/Kc2HAKrwBbMM0PHDnWlZ2sjGcZRPvR4xxUYpZfGZvfZSQaMHFydeM52wvN6 yrvI01HthGWkMjq0GAoY8ca+aWWjZNEjis6CJX02YKkiZS1lwVhxqwfWGitzuqAM/tka 6WW77xL45pQ3OMz4E5yIbQElWaRb5bXIV/Do8= 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=eAnGeza+RiSlIVu+0c9b5tCUTCvMOkR19d39VJCDXNg=; b=B2PMy8tFoyshJFmQx4Bb660j9e0WFrw0o96VE+Bu1UBxpGrgz1h9iZ6etZPbVNYwqm Zf3D4TQpiZ+xpdvZkkTp3V4qrx3pYzMKKE1E0TWtk30OgQ4iXiSZ/DJL97Vvm3nuJd/+ HYAez9MWMfrNzxGtoeulJQFOQS253tRE1ptC6ukhEzWXNG3O9zRJeHi4EC00AOKAcCNS hvPoZdc/h8dNraMlyKazNzW6EAlViMmTIqxnasyGu26eYVBW8r40U0AcEUkqVzDvFPu5 idwPmpZmaM1sxPBKAXg1fjXeX6jtp/X3sYt2jgaXNZxPiiXEr/Lt9JZHnCoMSNFCIuRZ Z/Eg== X-Gm-Message-State: AElRT7GZb310J1gKFpWQQwPtcf3Z9KaFrLiOiOOeCF79lzyGmyy/0i0Y UvWBpOky3npl6iS67SYmYtpU0Q== X-Google-Smtp-Source: AG47ELvm7txOEzzfQsVq8g7nCPGbT9UMnFZWqW/YAr/jSLKuUsv9eyS1ufeyD0e4yJpcpjeeNO6ucQ== X-Received: by 10.28.85.7 with SMTP id j7mr2101620wmb.38.1520607047715; Fri, 09 Mar 2018 06:50:47 -0800 (PST) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id u48sm1191901wrb.85.2018.03.09.06.50.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Mar 2018 06:50:47 -0800 (PST) From: srinivas.kandagatla@linaro.org To: gregkh@linuxfoundation.org Subject: [PATCH 19/25] nvmem: rockchip-efuse: Do not use "&pdev->dev" explicitly Date: Fri, 9 Mar 2018 14:47:13 +0000 Message-Id: <20180309144719.29904-20-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180309144719.29904-1-srinivas.kandagatla@linaro.org> References: <20180309144719.29904-1-srinivas.kandagatla@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180309_065610_605107_A329FFC3 X-CRM114-Status: GOOD ( 12.26 ) X-BeenThere: linux-mediatek@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 , srinivas.kandagatla@linaro.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, Carlo Caione , linux-mediatek@lists.infradead.org, cphealy@gmail.com, Matthias Brugger MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Andrey Smirnov 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 Signed-off-by: Srinivas Kandagatla --- 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);