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: 10270919 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 0633F603B5 for ; Fri, 9 Mar 2018 15:09:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E90D2287D4 for ; Fri, 9 Mar 2018 15:09:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DBE7A29E3A; Fri, 9 Mar 2018 15:09:24 +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 465E0287D4 for ; Fri, 9 Mar 2018 15:09:24 +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=tZczCwSPjNgTiVWnCVcJ58+1pGscJagb5p28mNXqhDU=; b=M1FgzAbwizR64wbQQSKOXY1rn5 jqkN6Kutccm8ArBYJyvZj4GPfkHRVZfdyGnD3pUPm+RfpBzXmEPISGxPCELhekS/ct3Ycm/ZHWmXY 6Yh/XB1niaPN1lutcODJ7mTNO11XgbpJgHM7NcM4nlb40pnnCWgrd4wirr5b4k7W+LRu5D3fEYk29 GV0Kczg0p7bMIlFRq8a/lR1iYRhTDV7ENxDDmgaGnR4qUlbRS8TqnC8BErK7EtKM25aYdgimA3FlR QMDECpXvkVyPHEaWvOEajPacHDt9YqI0q3Jl4H4BL+y3qsk9+pJMcFhLs2U2YztSMCrbLIaeM4Wla wakL0l3w==; 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 1euJdz-0003z7-Dg; Fri, 09 Mar 2018 15:09:15 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1euJbR-00027T-4I for linux-arm-kernel@bombadil.infradead.org; Fri, 09 Mar 2018 15:06:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=eAnGeza+RiSlIVu+0c9b5tCUTCvMOkR19d39VJCDXNg=; b=Vo5KZGBq7yOvMn4FCrY8gtePt 9Hct59I++QO9ot3cYWTLQyvQAfQtLUHdhVcLWKb/+m6q//rrhClgTO4HJwDhLFT5fFSBJvnqUr/JJ +2t4WzUT7126WVzSJRBU9wyUpZjgd1yYWsZTpsyhngCDmEL/aGvaYoEcZMZLN/32e/XPitqwvswOP 6JtY5nIC6Ngnt1T+AfyVrZHKwRURnVT9GG0mGv6Ctvno55FZo7KH5Pf/sNaOK95kwpO6xJRhvpmie gwUJlD00XwzxvzhEsJ3yqA4mqpjtpWH/GaUbGqE2s1kQsxGMhJpfjb+XpnU7lMxKrxA2NQjZo9gcj 4c3Zy2H5Q==; Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by casper.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1euJM8-0005cK-Ov for linux-arm-kernel@lists.infradead.org; Fri, 09 Mar 2018 14:50:59 +0000 Received: by mail-wm0-x241.google.com with SMTP id a20so3781011wmd.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=ltli/A66yYu1TLupNahZTM3dT1pPgklgrpXBCcX4QutuA8JKOrT/8MVy9GtBe7DXPm g5T6NhzrvlFE9QvmoWfuKH6hBrIJb68FTlNFae3IkrbjQ930THxhR5NKr2hEDeqGdGhE hRsCSMD4JeN7N0bUdLZKvc6D2nrI9h9dWMLKmiYVE1bR3jYgoFsRuJ6jVNCNdAm2R82T HIRvMpXrVG1Z4Cmyk6BDrUrUMvpP3N63YF8+HIDYc3V2CIflchapmfO2tZa74SpJcc1H MA6HjKh7Kq6t20DBC96CvLvmgC/HH5TB5JDTrGzaNQH39En6+A+AAAPPTsD5fiyDOcL7 Lw7A== X-Gm-Message-State: AElRT7EJbnxnlCQO+aEGGpYoPzdvkXOCmLrXxTMiR3UcTToUhhiZEGgz mSqLYy1DpnJr+nTfZihPNp6z7w== 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_145048_928340_6CE4D936 X-CRM114-Status: GOOD ( 15.04 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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);