Message ID | 20180308191205.26943-22-andrew.smirnov@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-mediatek-bounces+patchwork-linux-mediatek=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 61AF26016D for <patchwork-linux-mediatek@patchwork.kernel.org>; Thu, 8 Mar 2018 19:26:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 501B029993 for <patchwork-linux-mediatek@patchwork.kernel.org>; Thu, 8 Mar 2018 19:26:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4397329AF0; Thu, 8 Mar 2018 19:26:36 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM 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 C403229993 for <patchwork-linux-mediatek@patchwork.kernel.org>; Thu, 8 Mar 2018 19:26:35 +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=8EYWdM1VO/mwK+OrV2zleN5aVgoDtLtyP9qyuTsuruQ=; b=lo7+iXsToA6OFV8tjLIflKbCr/ uoyGBBHbMRh3yE3IWxtUGMvkCeGdvHiIodX6swo39Zdt3xKR/nA5J3/bQfP5jaAIemSRXZUwWbS5s He3B+8r4CwACNCGZDeT4+XMAcedAt8nOs/QiVXgw3fJLGsBg9Fv96Y3HzO/bGzKag4IDdDI4mOj8o t+lTKcvy18xI4TZVw+Z2F6lTY/FR9sK6zJOMmd/g6EjbuGo2ACDGLTjCLjQAtgeptu8gWSEr4DT2L 0jANl+ZnT7wg/YtjSwAE9i38CzAQpEzr8YaCSfxJWKx/ZJiB3zy7cH78C7eUhfGlsiWYG4seLJ6W3 Yjw+2xAg==; 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 1eu1BP-00059Y-7V; Thu, 08 Mar 2018 19:26:31 +0000 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eu0yN-00026K-AC; Thu, 08 Mar 2018 19:13:24 +0000 Received: by mail-pf0-x242.google.com with SMTP id z10so274778pfh.13; Thu, 08 Mar 2018 11:12:53 -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=exTn5jl94ieBNc+dWgIgkJJZJ2zZmllqZD+uWfN2+67IoF5aEgsaejo518KkUzCbK2 57eyBf0M6BvJaTC/Jp11VQPjuVRrvP9AU0j4jLcCPNmP9VjymfN23Txz8qKSvzsIkcKR xNkcDU1mI6hZTbMZeosE6i9au/zB1E61fbsV7NNXyMH6ZAKDsPL28Znb0E7SPHxHRlsd O1/Hr1duxEtd64JdbDHhO8d3Q1YTelNGLB5H0m6d037hKhVOQdg9p+brDuYJuwAGq5Gw 4k6pmHPeMJiRMei3c2asTVz6fWmhjHoNa4X9xA0vbMbT1Db3OfmhAd+oorCFlXEbqR0J 73+w== 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=MKz0GjMkA9w8+XoMrcLyfJSPQBkuXMamzG6ZUN+ptz3126cflYMXYUvm3FlQJLLmGD ScuYZ3X5R1dzpoaZNV7S7vgwp/Z5MncGmu5PSJLsCyT9tkHe+vsDQELjjS7gkwYh2tyW xuQ8CksW1dnxFILYx0JOTprrdk9Goa/U3DfcqLOZRG7YZFfCYN002KttLsPlBaV1FZCc e6/7nG0C2OOlCg+CAxx1yqmuD41nnyMNDmC6m0E/FY4glZ+wD6dwo1qV5wJWo1vioxN3 80GsazFJMvEhq31GBTyE71MYf9x9O3Rv65mUmwACcG1fyW5CKuh+oiIpHncUvPMHRxLq KItA== X-Gm-Message-State: APf1xPCmf4Mf7QReY6RWuGaEoFWFSqx+58ZTxbnJl7y3sZceGg4TA185 6xC8L2gVsDxKiaGOHLjs60Q= X-Google-Smtp-Source: AG47ELsiIkx+Hzekoh/zzuOIwcTkQtLUjH4G2xmfZvUjm/wiElPm9338YhFNvLt2ZmZ1KGelp1sG7w== X-Received: by 10.98.77.194 with SMTP id a185mr27375124pfb.123.1520536372407; Thu, 08 Mar 2018 11:12:52 -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 j64sm47201768pfe.68.2018.03.08.11.12.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Mar 2018 11:12:51 -0800 (PST) From: Andrey Smirnov <andrew.smirnov@gmail.com> To: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Subject: [PATCH v5 21/21] nvmem: bcm-ocotp: Do not use "&pdev->dev" explicitly Date: Thu, 8 Mar 2018 11:12:05 -0800 Message-Id: <20180308191205.26943-22-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180308191205.26943-1-andrew.smirnov@gmail.com> References: <20180308191205.26943-1-andrew.smirnov@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180308_111304_283154_C686BC39 X-CRM114-Status: GOOD ( 10.39 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-mediatek.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mediatek>, <mailto:linux-mediatek-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mediatek/> List-Post: <mailto:linux-mediatek@lists.infradead.org> List-Help: <mailto:linux-mediatek-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mediatek>, <mailto:linux-mediatek-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-mediatek" <linux-mediatek-bounces@lists.infradead.org> Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=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(-)