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: 131122 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp1079069lja; Fri, 9 Mar 2018 06:52:14 -0800 (PST) X-Google-Smtp-Source: AG47ELvxaDl/lE9lD69flb+BwKXbuxpSYVzwmnZXAW4SYt4KtXzbZ41+y6qJ/hZlv7nned2uAjDC X-Received: by 10.99.121.140 with SMTP id u134mr24030767pgc.89.1520607134381; Fri, 09 Mar 2018 06:52:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520607134; cv=none; d=google.com; s=arc-20160816; b=qyRLzhgDYwmuuiP0JX9Se3elozbHahd+j3RX3GlQ9hvb7fsKDKIidC+RvBA0VFyLBm g51e1QRwzOSQtLGeG25g/A6pqSaLzJsyQ00yTgEMG7jnlBBIOtE/nosTC6uGvrqBGaXy 26LSa3SMsfDTj7qXvssyegQENJ0XZIlZtVA+ExEn5FmsZQ5XySOldWAHtrkKXyhunT/O OzFNgHjMgJuJ/dqd8fTUiWnWQdQ2WPsXNlKlkjWHbhRBgiXt4wPLlrz80NG1fsHtU1FJ AfIJ8MlzT6WcvCLEwIwPACTk73UiljHFAhWRb4VPOsY4gEiAYYgCpoI9uQq+Fy7Dt1Rm C4YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=eAnGeza+RiSlIVu+0c9b5tCUTCvMOkR19d39VJCDXNg=; b=aVEbSID99YCxvuS6IcXlV7rI4OEB2FjlhWUt/WBI1wzMwgi8YTN6K/2qXyo0QbzYN1 WsArLU/Zo0Wj4S1re/OQEEoIAnmx5+y5Cpsh3FWfN8RvssN0wsTcEl3/FHnAAeukEBUn BTFqx4+YpD653akJG1GwVH/ykNJrW5EFgqpBRMayF8xifWYlyvNKKVARtKaXt8mCXbOG /8XDFUTsxATD5tD2ZSBlyLqlp6KIrZA97d4AQhAr7af28qgtLH4vGGX/6x8sd9eADA04 pvMxpPuNcCzyG4kSpBqfXVnW5T76GZCi1wVzb3lIOBcH6eJWVUaibh/A7u3ndM6TXanE +k8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ANbYRZ/K; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o22si829672pgv.232.2018.03.09.06.52.14; Fri, 09 Mar 2018 06:52:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ANbYRZ/K; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932433AbeCIOwK (ORCPT + 28 others); Fri, 9 Mar 2018 09:52:10 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:34809 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932371AbeCIOus (ORCPT ); Fri, 9 Mar 2018 09:50:48 -0500 Received: by mail-wm0-f65.google.com with SMTP id a20so3781010wmd.1 for ; Fri, 09 Mar 2018 06:50:48 -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=hqntVCzEsAdGpWk+4Y/mnDwvPO2eRaGehqjCssaXBjlzRJovTq2B4JhDZrJFnv+wDc uEOppTLVsWruaJ2iKcix1SV1mcdnCmjrpOvF6+2FJqdapdf0p36RTyHrqEn4fNoU3BZJ pOCXkhOzHIDsx8V959LTWFI1AuBnPf1crC60coiBXdrEdweI0Hthkrxb8DMjs9fnIILM lpPjgVoKywnFXmhd/vb3Oxl/0SX7yHRTPZHNbNrfHv/fRCPRvf97CS1UQdij3yX44z6S CJ4w6psvbjfG9AczHqWgpWibqWc8tGCMRa612qVt3rVVwBrFrKfFJ2O8E8lIiG9PINPB NPrA== X-Gm-Message-State: AElRT7G2WfL7/FexIgbgZovtgFvLn/INfiH/dLoFmJMkButruNLr+oV3 vY9wIrPZuH52fz8uTpnEgJOJ5A== 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 Cc: linux-kernel@vger.kernel.org, srinivas.kandagatla@linaro.org, Andrey Smirnov , Heiko Stuebner , Masahiro Yamada , Carlo Caione , Kevin Hilman , Matthias Brugger , cphealy@gmail.com, linux-mediatek@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.15.1 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);