From patchwork Wed Dec 27 22:59:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10134307 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 522EF6020A for ; Wed, 27 Dec 2017 23:13:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 447042D199 for ; Wed, 27 Dec 2017 23:13:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3917A2D479; Wed, 27 Dec 2017 23:13:56 +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 C7A0E2D199 for ; Wed, 27 Dec 2017 23:13:55 +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=M1/QUgNxV5+O7XcPkzOWcOofsCzIDV52h+51fXo1qbs=; b=fDLzr/YzJPAq1h/915ggki+Ply +KoEhyfFGlg6OZDL9LC0UAX03FWcUQFsB2RaF3szorimAyJmoKXpkWhNtSKWlXFNUWatkO+eta3Ak JDagVh5h53lFEOkvxqUrMcIZfSaq5GCvXNYusWyYshL8jbxJZcSDLEbaI+rkEUYanySlNh431TRDl 6jtbgiJaAJIsF7S0RHvf0t1Sp6OAfz+e36sxwSHyYihjZiN52itNcG2N7sq5bzsF/Tf/eNtZBPm+q bLkIaMKHwBH48uagn3e8qKr3Hzl+b1/cNnXl5XuEoefiHWJ60t2p7g4s57qh2npAy740lVUQN0Wh1 IVYWIVBg==; 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 1eUKtS-00075k-Ii; Wed, 27 Dec 2017 23:13:50 +0000 Received: from mail-pl0-x241.google.com ([2607:f8b0:400e:c01::241]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eUKgy-0004hX-It; Wed, 27 Dec 2017 23:01:25 +0000 Received: by mail-pl0-x241.google.com with SMTP id g2so20131900pli.8; Wed, 27 Dec 2017 15:00: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=COp068DFiz1qtd+MmEnb9iplV427QKXMd35jziIn0vM=; b=Tp8I2R6P5wKBbcay8VbxOGQu8ghpAZy7utfasTzEGUF+MaynswLblFv5Z0cxIJAfpB H82X2Dp8z+W4oROx7wLCvwZUwe3dlpuIuz81XgzYM5h33CNyBAY2n5D2t1CY/d4sVcjJ OzdMckNZrZzeacuB21UYbeyBLk48ZvnY+h1A8pNrTeHNCiTTt5dj93479V/B6nF4pnmK zqh9QWs478Upqn699jQ1k5xa/LqrjUfeY1fSfdX5PW8IMRt6j6TB7GYAnnXVUAlmmZzk 0gdMJ+vn/rXacRYSsZfm8vARKrEHr3YSSUTTzJEC2wcBfomlhDXLvYLUEkZhOsWRUQJQ BHsg== 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=COp068DFiz1qtd+MmEnb9iplV427QKXMd35jziIn0vM=; b=oJ0SnNs04bWSNcrPLpn5e49TqT8RgS3Jm2pwj39osYxurXjG+YkoIhqGpXV8cGefAL CxQkwSwsktI+mzB7Kq6F0DBdPtfVVQg4ZjOnRVv9CowlSzJ2maNPm0Rgplx0kHkOIr7X jWkgdKYckodVzJSYlzFZjrhW2PqHkQGEI2dgmoaP0JhKxcziN5LTxVOc6rKGs68hJorW XxG3uYUcKEsNymUjs62nsl3d2Iu/xbUV71KO9dhFbMrCD528lRPe7rkgpHEGn4zWloe3 +R7Fo15JbDt8VlZJA8CFmPIptp1XmEYQLJ/t/T6gzgbf1+oOMpdjvxNkorgqiDOyPr33 iXJQ== X-Gm-Message-State: AKGB3mJMGbjEqoTtx/CUs5ALGfuQu2rSKSa5GHQvuOiiaoSuJN2gvt3C S5u0GzlPoP3ZCQXGZdZGDOk= X-Google-Smtp-Source: ACJfBos/+4j84nUd2MdLZgsAnXiheUPe7b3i5EKRc+3d4Xf/kgNyYh7Ydz+1tYqFIgq3Ke+64WOxgg== X-Received: by 10.84.230.137 with SMTP id e9mr28563628plk.293.1514415645545; Wed, 27 Dec 2017 15:00:45 -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.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 Dec 2017 15:00:44 -0800 (PST) From: Andrey Smirnov To: Srinivas Kandagatla Subject: [PATCH 20/20] nvmem: bcm-ocotp: Do not use "&pdev->dev" explicitly Date: Wed, 27 Dec 2017 14:59:56 -0800 Message-Id: <20171227225956.14442-21-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_150057_520480_10D216B9 X-CRM114-Status: UNSURE ( 7.86 ) X-CRM114-Notice: Please train this message. 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 , 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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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/bcm-ocotp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; }