From patchwork Fri Mar 9 14:47:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 131121 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp1078849lja; Fri, 9 Mar 2018 06:52:01 -0800 (PST) X-Google-Smtp-Source: AG47ELulHf92oMxJYQYkAWEA4tXjAd4cUOV9OLCvqYwfIaydGzjFkzWUz9hag622HBF/Fpa9O/uP X-Received: by 10.101.98.149 with SMTP id f21mr1407510pgv.7.1520607121590; Fri, 09 Mar 2018 06:52:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520607121; cv=none; d=google.com; s=arc-20160816; b=G6Mfv8nIUnCQu3JuEwJ3uLj1a0lBaSsdsmKLCUFzDCyKHft2metp1fCV6PPq4ormTs JMdOoWYleJgG4mGN7sWnCIkU9QzY53bPB6KDUo0dJNwraD3m+EF5wigQVqIeoKh2LZVp Lk8VeFFL6dlXwnZ6DFzIGQz0oSTSCPMwkfYtd29XC3MLvfkqoV+/LWjzOBREOgo2wf6G QhhfDEiaIHz5uWYFBYnKSAcFJmtmYd9UQN7z6DzaFE3oha4kWbTcF7kLADCtPLolVytx Qq0prpgGb0Zumh0LFt3J98tOYSnBFQpoPIDpkr3c8ojF+YkM6lc/tg199HLLb+Mgxdl9 Kusw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=3ZSCv8oSZg2owMLKNVQOSEpWttP2gkpTlAcGvmpr+DI=; b=ERO9tNYgk/ABvfHF0WS77JCAKaqu/3JkxIJXZqk22/NMfygaL47L4NSXGX2EauzguP qA5TwS6Dz7bAssP131/7ek8X2W6+OLajzkAzxNW5m9GcYfS5qNwXjf2yjRnqisxWRU42 btvVsEU56BmJdnQ1eQVpJwh0GI80dZuUiGUOKuiPhuBxVLxt5imL237AEKZQVFPXi4E0 2E9tn8spwfv0xbPsGBQZFzAmkLzlHBz9aeOwYagt1WtwDHg0DTwQyxbDNOMmf4WE6zik h32e7p/NYGw39N2U5eml9KdXAr1TkBUxAX8cIge46VXw8GrspxyKpRLDJUl/2SMSUEyM HaDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TqvcsK03; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o22si829672pgv.232.2018.03.09.06.52.00; Fri, 09 Mar 2018 06:52:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TqvcsK03; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932193AbeCIOv4 (ORCPT + 28 others); Fri, 9 Mar 2018 09:51:56 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:54611 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932314AbeCIOuv (ORCPT ); Fri, 9 Mar 2018 09:50:51 -0500 Received: by mail-wm0-f65.google.com with SMTP id z81so4360276wmb.4 for ; Fri, 09 Mar 2018 06:50:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=3ZSCv8oSZg2owMLKNVQOSEpWttP2gkpTlAcGvmpr+DI=; b=TqvcsK03n6rJqF951H1HUlNq7FGnTsSuKL1fQx0p2oLzysdpPC4SgMGKoPswfLyTeX Ld5bq8zG2aIIQvsoKGQiDFu7yYBnDqTYdfYg5+AQQItxmsNpuuI15GkICdT308ZTCZb7 xajoxhnX1KOIsezeFSuULtYL6k5AMH/4TGPJw= 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=3ZSCv8oSZg2owMLKNVQOSEpWttP2gkpTlAcGvmpr+DI=; b=Wzgm+Rv8cgg1QP9LaxfBrz3YrTvCBNSLsiDPpQjOSzgKAgMC/Ri/LWWt7m+ZdITpMW j2u7f3XczXxRtft7v9QFTt6L7z6lds4yEiLdaTkXHfTdNWRhm4zdbJJdPTFru04NDzgX CPQ/xrSRrzL3AjI4+ktwx8Z0w1/ocfxPUU5UQGaiLyObNA94tLXe8gb2m7HBSJpZCKue BahhBm4EMFEejCG5IW4iFr+G6H77JxohLICWInflMyWOG9p2tiLh5jgIhiuOZYifNC+W jDs9H8jy2+bOfY13Mf5iau5cPZCvtbYxKSpHP8Ma2FE7+WKlvq17W9HYy6vYNFRMdIGe 9zIA== X-Gm-Message-State: AElRT7GG4BQDoi6kIdonLaaKRuZwbTo0797q9I3F0mhIGysrOk+SD/hr 32VCcXTfG85cIpHTckRu/sjLPg== X-Received: by 10.28.238.132 with SMTP id j4mr2395380wmi.73.1520607050262; Fri, 09 Mar 2018 06:50:50 -0800 (PST) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id u48sm1191901wrb.85.2018.03.09.06.50.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Mar 2018 06:50:49 -0800 (PST) From: srinivas.kandagatla@linaro.org To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, srinivas.kandagatla@linaro.org, Andrey Smirnov , Heiko Stuebner , Masahiro Yamada , Carlo Caione , Kevin Hilman , Matthias Brugger , cphealy@gmail.com, linux-mediatek@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 21/25] nvmem: bcm-ocotp: Do not use "&pdev->dev" explicitly Date: Fri, 9 Mar 2018 14:47:15 +0000 Message-Id: <20180309144719.29904-22-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180309144719.29904-1-srinivas.kandagatla@linaro.org> References: <20180309144719.29904-1-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andrey Smirnov 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: 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 Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/bcm-ocotp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.15.1 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; }