Message ID | 20180103200114.23922-23-andrew.smirnov@gmail.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org> 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 1FBE360594 for <patchwork-linux-amlogic@patchwork.kernel.org>; Wed, 3 Jan 2018 20:28:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 144E72928B for <patchwork-linux-amlogic@patchwork.kernel.org>; Wed, 3 Jan 2018 20:28:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0935E292DD; Wed, 3 Jan 2018 20:28:01 +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 75B9E292A8 for <patchwork-linux-amlogic@patchwork.kernel.org>; Wed, 3 Jan 2018 20:28:00 +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=WDhT9w1E5kzf8+Qrc49F6LxKuRosL3Ojx0bK4hg7BS0=; b=fV4A/G+hregVHG/XOFr6wV+XRL CNlKu9t1gyWs5LmaZZof8FxT9tRd3SY0/U5ybBQ6Zf09XWxFYSXh57E7TAqavuWtyKDFu20Krh3KR HXwijwIPnAiJEHm19LaSpABGn3AI+HSfI9r9ZLMcH00MUawlLyTJXupsz8POApkKOFVrVtx9tTB4Y SypeXhDjnEs4PVWHPCFq5GUbVmxXViG7dIV96SUEWcuidOpkvAkUTI7KQYuQ98p0ibdZc1/Vo2pzR 6kD+UWAC/gUY4+jSVb/CCWM5/VqTMtydDk5AgW7mQr7o1KOU8BUuzvYz7gTFPb7arBB5lMkD8K9/g kR0DHBhw==; 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 1eWpdd-0000UF-DF; Wed, 03 Jan 2018 20:27:49 +0000 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eWpES-0004iX-1c; Wed, 03 Jan 2018 20:02:33 +0000 Received: by mail-pf0-x243.google.com with SMTP id d23so1166960pfe.9; Wed, 03 Jan 2018 12:01:46 -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=ORNQvYvIpVmdC8lY6mQXCYD6c8M1c2Pb2+T6wXPZkXc=; b=Rza+FmVumMXcN1gJ9aevkNvusEZgjwNxPA7td3tzowI6fAKSnRBo3+h6QVW8pIyoEb ILfBsnvW02FKBcD0Z/Xs1fYCF+UNpmDeR+OPW2R3kvLl7Qo4xWXSfcF1F/kSNeCKfH6C 3cOI0nIHmrZUaP2VE3QpqDPNoQ2xmQ8hUfVHS9bpPa88HcwbQv/Cg7sQdhRR3VRPmr8X SB8iWyfcC+y5+vWbi8Na9gu3DZ82ccNKsGEAuNL/K8RG1kV/tzWPspMPz5WLC0VAqrU0 8xq0yTwNYMOP7EmNHCzE8deW6ia7AY6+AgiOmF48BcnWueNdMxupsx1br/1MqQo3+9JG VSZw== 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=ORNQvYvIpVmdC8lY6mQXCYD6c8M1c2Pb2+T6wXPZkXc=; b=c+g0XJjzpiHQohv+2P7PuEzGBK0jLWxN+wei93v/+pZUSiEdUy5ETxj5MSz8y0wQ6y sSG8dMsjMEzyR4oYVXPe7ebDWaqLFXT2FkP3BQyfCwGRlDtw/7NB0Mjl53qd+YpwsdFz bbOgViQQ5FyY/oo9wwhXbCHRtByCWkrGoOeWBCF8lB2+Z6xpa6oTJOCbtbg5vJxXT576 mbvkFa1lTAodEWXhjuYkimcBayQ56Fp2ezzwZbFG3lt6OZ1Dy51O+xeGkcI6nZHWxLll y4+s3bK2eduRzyekGxuexNura6zMglNSYEoD1yfHpVfrQuumH3MsVhMVGI7mMPqaUGw/ JP+Q== X-Gm-Message-State: AKGB3mI7XPRXANWp5NP9/okbY8kfs+ie6S3f7nyBdAf3cyPAX4YazmZf aNhsrrLwJ2qQxvU6srNHvk4= X-Google-Smtp-Source: ACJfBoug/h/btE+0WAOzaeEYQpCqLsRKKXvXX5rLhv8C9Mw4Vs3cLTuZLkjeQ99+u6muW3Q4BxQtsg== X-Received: by 10.98.130.4 with SMTP id w4mr2471941pfd.128.1515009705831; Wed, 03 Jan 2018 12:01:45 -0800 (PST) Received: from squirtle.westlake.spaceflightindustries.com ([173.226.206.194]) by smtp.gmail.com with ESMTPSA id b9sm4542209pfl.108.2018.01.03.12.01.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 Jan 2018 12:01:45 -0800 (PST) From: Andrey Smirnov <andrew.smirnov@gmail.com> To: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Subject: [PATCH v3 22/22] nvmem: bcm-ocotp: Do not use "&pdev->dev" explicitly Date: Wed, 3 Jan 2018 12:01:14 -0800 Message-Id: <20180103200114.23922-23-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180103200114.23922-1-andrew.smirnov@gmail.com> References: <20180103200114.23922-1-andrew.smirnov@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180103_120148_920496_A403A1CE X-CRM114-Status: UNSURE ( 7.70 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-amlogic.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-amlogic/> List-Post: <mailto:linux-amlogic@lists.infradead.org> List-Help: <mailto:linux-amlogic-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=subscribe> Cc: Heiko Stuebner <heiko@sntech.de>, linux-rockchip@lists.infradead.org, Andrey Smirnov <andrew.smirnov@gmail.com>, Kevin Hilman <khilman@baylibre.com>, linux-kernel@vger.kernel.org, Masahiro Yamada <yamada.masahiro@socionext.com>, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Matthias Brugger <matthias.bgg@gmail.com>, linux-amlogic@lists.infradead.org, Carlo Caione <carlo@caione.org>, cphealy@gmail.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" <linux-amlogic-bounces@lists.infradead.org> Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/nvmem/bcm-ocotp.c b/drivers/nvmem/bcm-ocotp.c index 24c30fa475cc..4159b3f41d79 100644 --- a/drivers/nvmem/bcm-ocotp.c +++ b/drivers/nvmem/bcm-ocotp.c @@ -262,8 +262,7 @@ static int bcm_otpc_probe(struct platform_device *pdev) else if (of_device_is_compatible(dev->of_node, "brcm,ocotp-v2")) priv->map = &otp_map_v2; else { - dev_err(&pdev->dev, - "%s otpc config map not defined\n", __func__); + dev_err(dev, "%s otpc config map not defined\n", __func__); return -EINVAL; }
There's "dev" variable for this already. Use it. Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Cc: Heiko Stuebner <heiko@sntech.de> Cc: Masahiro Yamada <yamada.masahiro@socionext.com> Cc: Carlo Caione <carlo@caione.org> Cc: Kevin Hilman <khilman@baylibre.com> Cc: Matthias Brugger <matthias.bgg@gmail.com> 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 <andrew.smirnov@gmail.com> --- drivers/nvmem/bcm-ocotp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)