From patchwork Wed Dec 27 22:59:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10134265 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 321476020A for ; Wed, 27 Dec 2017 23:09:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 24F032CF46 for ; Wed, 27 Dec 2017 23:09:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 19CD82D479; Wed, 27 Dec 2017 23:09:05 +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 BA0402CF46 for ; Wed, 27 Dec 2017 23:09:04 +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=E24fiNEWY4hzXVEPCB9yBJvLY1JTmHzMwk0/xhd9YSk=; b=Z9zUKRGfimgAvrUbbKVtIpC2oE lQkS6ft2S7m4vOLiC4MMtjq4S5h3hUQk78J8SIcZY/yxbcO7l/TKCZjRJeze46+oSLUsiP2RVhoaR q6uIp7056NimAzJAQdidlxkuSCJ7FDJ4S/G0WBbtdv+0QYhMx6ev7bDWx+J8+kt1C2BmvNIgYLlQ0 bV2QAgyBSmUDlbrGOoQcQNEAL9PXY4SdTTet6h1zrqTyYc8JxO64tHv8QufxGriqrmcjl7Fqaid5h ZAGaqidl+Vu9XuRoS93dSOWJHEU1ugl/g3kAzwIh2ZB689y1M8XI67nQRiGFUVIEj68PugJJianl4 L1MTOrfQ==; 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 1eUKof-0002Hc-MS; Wed, 27 Dec 2017 23:08:53 +0000 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eUKgq-0004fA-Fi; Wed, 27 Dec 2017 23:01:13 +0000 Received: by mail-pg0-x241.google.com with SMTP id f18so2602715pga.10; Wed, 27 Dec 2017 15:00:43 -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=60NkIlOPyM6YI8exDkzqXsQSHETLJ3gc1l3Jk/ky3Os=; b=vRcEskJ8GcCTrWPIh7ANrzL8oJNMlvkxAWdt0nx0FMPm/yFk1QCdmRxppsjpo/fPF9 6yVGQH86GNoLaTuKYEO270Vy4YaCwF7Y24ECSkhuwSpXWs4OI4HGFNlPHZZd5FTiK5SN Yvt3o7ozK397z8mWnf2AhA/mLtQwXOpfbUygyGX6jCr1RGgxeQ3PZnbQlPrdbe6b4N+F c3lJgfldrHZfkfcFqsJyMvkiUVbewQf1lxkCLWZt6PYJmit2SZ3HbyayknAdxo4akxZh Po3awJZ1s8bHEqXOTDFGwdkblDOJcZNKigSSs6doVvtmDlugev7fI3DxmYqqn0NX+tZF ySlw== 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=60NkIlOPyM6YI8exDkzqXsQSHETLJ3gc1l3Jk/ky3Os=; b=cshT/TRcjfUKlnh1CybFJfNy8srHW+MJo9jx/enQFs41hmmmuDqnxkzYgVzpYl+Dnj YhQFT9icjgTqmZ9Uv+M7lTMOWMnynUd0u6y4X2H/KFDyZ59NUCXohWLwHpiYno12jB6v w1h+Mt4rNQ5VDkKeJQ+7wfrv4mtF8tGGwUc04jo9RIf5aqzt0ofYci7H5y8zjRpwzJYS 1OyhHTkB+OzE5L1L0h8HH6HuhRrvaR2G1qurodLzkBgglWhv3Il/uAKLVND2o6BODek5 JqXI9jTaNbiMlj9KafBy6S/Nsnq0WnnvupBuOR+ZHf43V7ApKGSpg1RZ9tCZKYk/YyJy PjOQ== X-Gm-Message-State: AKGB3mI5QCy59HMzxnMqLhWgpXVsd829zEcQ94W9/sTGsRM9vW8S5CTc KZ83lLZUVI4KpJgB8e1kwpY= X-Google-Smtp-Source: ACJfBouNDs33VNMsFckRMUJ5cAucnS9O+Z6yL2fuPxGk9Qttguh3thlL6zbTb3iUZMAIk90YOcNXaw== X-Received: by 10.98.185.8 with SMTP id z8mr29666871pfe.166.1514415642481; Wed, 27 Dec 2017 15:00:42 -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 l19sm27810326pgc.57.2017.12.27.15.00.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 Dec 2017 15:00:41 -0800 (PST) From: Andrey Smirnov To: Srinivas Kandagatla Subject: [PATCH 18/20] nvmem: rockchip-efuse: Do not use "&pdev->dev" explicitly Date: Wed, 27 Dec 2017 14:59:54 -0800 Message-Id: <20171227225956.14442-19-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20171227225956.14442-1-andrew.smirnov@gmail.com> References: <20171227225956.14442-1-andrew.smirnov@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171227_150049_468087_0102D175 X-CRM114-Status: UNSURE ( 8.24 ) 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 , Joachim Eastwood , 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: Joachim Eastwood 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 979ba0a376a0..3120329aea94 100644 --- a/drivers/nvmem/rockchip-efuse.c +++ b/drivers/nvmem/rockchip-efuse.c @@ -202,21 +202,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; econfig.size = resource_size(res); econfig.reg_read = data; econfig.priv = efuse;