Message ID | 20180228144106.16363-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 2C6BE60365 for <patchwork-linux-amlogic@patchwork.kernel.org>; Wed, 28 Feb 2018 14:57:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E54E28D9D for <patchwork-linux-amlogic@patchwork.kernel.org>; Wed, 28 Feb 2018 14:57:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1301528D9F; Wed, 28 Feb 2018 14:57:20 +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 1968328D62 for <patchwork-linux-amlogic@patchwork.kernel.org>; Wed, 28 Feb 2018 14:57:19 +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=taxBlTs6blCx+E2wGe3y5tRd49 PTH/F08nH0D/nyJ5APx/Za56Jg/Rmc5faJIMUIwhi2XH8KqiL1F+riP+VaHBxJyWA4ei2zbBTVk+/ /xqB8G0fH8tzM/7pxHA+S1HOeBpium9x4gnQsWH1RlbmkB2rcJsL7cXQBWfcgk7IK06iFPFXkUchH sC6/48WrDnrwTo2BKgwV0QSjHAqUucxyPcxjPmphif4tZhcldxUzuwShr7sVtCeIkkia7hOGy8dN2 JnWBICYbpokNaOUqMCcmElw/rK3pZooOJTBFnGlug4al57HseXEJ62goH2/NmsJEJoaMhm4gLLVEK q+O2rnWw==; 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 1er3AQ-0005PR-9O; Wed, 28 Feb 2018 14:57:14 +0000 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1er2vl-0000KR-Ve; Wed, 28 Feb 2018 14:42:24 +0000 Received: by mail-pg0-x244.google.com with SMTP id g12so1015781pgs.0; Wed, 28 Feb 2018 06:41:55 -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=qL6s1EDWZKEWVrHlp0bEOHrT+Sjl84o26cs3Qzg4b1i6DLqkF8h+phEHYVX1CGdjdt XRSUpePF/3QphD50ErXKbh2y8OurT/P+DXbOxHJzx1Fy4yIQbtQV546oDuNspeGSYioA 9By0ln0Ni7VhZc7J3cA3hf09bkt52csHszl2ln1Di7FGkFBeYeDLwlMNwlMiX9B5lNDu jsRTV2XJnyc4H5rSDiQIq2EPKueoarF0POcvtpK6DxG2OMvvxCvvpAVqXz7SgOs9ZiQ/ sFY12dzeu5yNzh8SvcqDStVlmCQrbG5uSL4WOKeUTzrak1rSgNeOWTGkfFGVFB107X4H bS9Q== 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=Fe0AQOLGIPaEf8yu1Dh1nbnVFbjsTQO7iioiP8Oe1P+5EvpvU5CIsGLBcWUp6ERtJc pdmLW+VKcBF/HsEIgrrD34Uq9KMQ+uuukaKV6kqnQddL72NOFnbHsLjwtDFWDBBAWxK1 8+pkhv8tPshSX5DSEQdq6HgeKONUL6c7+UpLoZQJkIah4+yDTdnTFO2gCW/GFByWcmSQ F9svanTz5JZ1Ppi7nxrs6T7fuVSSLVDLaIZ+YYT4/8xpLjDwC4Qo78FEacM5HDaCeXUR /SpDxaIpQWtzL1EyWGN8I9Giy3d/opJWXUmxPkNZgaFPJeDbUM6eRF/26nPm7yXJJkHb a7Lg== X-Gm-Message-State: APf1xPBk9nC/2Tfvrp7wCbIJBYdKNPY0QqrkX+i135fjafB3bIwcVBsP /VY4VeytMbcvzk7DAkA3cNM= X-Google-Smtp-Source: AG47ELuId7xHVvS1taQLn9S+cuiWWQducFlka9l8iPEFLVDKXLks5HkBIyAffeALTUD7gLKehZ4E/A== X-Received: by 10.101.81.76 with SMTP id g12mr4203494pgq.88.1519828914852; Wed, 28 Feb 2018 06:41:54 -0800 (PST) Received: from squirtle.westlake.spaceflightindustries.com ([173.226.206.194]) by smtp.gmail.com with ESMTPSA id h9sm3674312pgr.78.2018.02.28.06.41.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Feb 2018 06:41:54 -0800 (PST) From: Andrey Smirnov <andrew.smirnov@gmail.com> To: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Subject: [PATCH v4 22/22] nvmem: bcm-ocotp: Do not use "&pdev->dev" explicitly Date: Wed, 28 Feb 2018 06:41:06 -0800 Message-Id: <20180228144106.16363-23-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180228144106.16363-1-andrew.smirnov@gmail.com> References: <20180228144106.16363-1-andrew.smirnov@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180228_064206_957920_2BA3E102 X-CRM114-Status: GOOD ( 10.56 ) 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(-)