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: 10271205 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 1EFE660236 for ; Fri, 9 Mar 2018 16:43:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 13D0F29BAF for ; Fri, 9 Mar 2018 16:43:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1207229E5F; Fri, 9 Mar 2018 16:43:41 +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_SIGNED, DKIM_VALID autolearn=unavailable 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 7198429BAF for ; Fri, 9 Mar 2018 16:43:10 +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=WQ+Mm20+qChDkXFHkbOa/E5E/3by4FN+IF3/3NCelcs=; b=fp5X7ZaWSYTeCze+RsZYh2ttJy ulc3ED0WloBuhjc2k5YfasDkfSqKEN6L1Chsge1V0ZHVV3E81KlbVJvYO/V5SBNGSMb5AuI5wk2CJ 78BxzvYM0UECjgfl/OzU3/gLEioyKnlUrC59dSbuCvbgr1NulwfeuDVbzZq0ebOL0rhjV6OM/R8VL hiq+FEOC5mK6CP8TJgXZU1KL5ZzBTPSZBjSQ7V5YqZw+n0qbTQCAjg5n/JEmJ4mfVHE7awj/xXHSo lbi6kzWpPH8LHgFmQwS5d1PlcF/vnEZjzR8VPoOM93tFvxy8q+9eDSTXagUlgc0/Mm7fIQ5Ja8q9z COC3RxRQ==; 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 1euL6n-0008Ci-5l; Fri, 09 Mar 2018 16:43:05 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1euL5w-0007Q8-UZ for linux-rockchip@bombadil.infradead.org; Fri, 09 Mar 2018 16:42:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=3ZSCv8oSZg2owMLKNVQOSEpWttP2gkpTlAcGvmpr+DI=; b=kgidVsQBgKNoZg93zkpSS/unZ ybGnJsCkvUfJVLLhlUIxBbG9SBQ4SaRZGkZ8Z3n1j+arizXFg8+Sr/cgZQiDUtMlQSiZg4jAWHTnq yt4harFeEN8APYO4qfjc1WINUej2kk65S2uQylLlTNvpV046xuMQPmI6h8qo7AgDpv1+JMaxN/E/j n5bSgjctP/HvHeVTIlZOP13BdiZAkm4gFev28izgXHSGFf9/plr6KE6+dJWFkIl05rggD3BiEYAhn 99zzQDnuJxaqXkVxLm3ltyMjRK1RlkhchfE+IBR49BIvaXIFPFWfeGWOUSTzAgmegLpOqLeY4lNpy mXKSZliHA==; Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by merlin.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1euJME-00061B-3P for linux-rockchip@lists.infradead.org; Fri, 09 Mar 2018 14:51:01 +0000 Received: by mail-wm0-x243.google.com with SMTP id z81so4360275wmb.4 for ; Fri, 09 Mar 2018 06:50:51 -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=k18n9/rvMGSUmSp4HKCCSbKYWJ0usySZ2h3OGWpuUmfJJIBn9UqlPjxnDhfwl7jzsw MjOK/89uU+teUBaUfh5cDNGiyqhPQPKizluxJSd5ktmz3QAQAYcDlJ4Ua0O+d/PABuCF KMzOcjnMeB1s4jGBqJZ/EbO5wyBy47+c7IF+aaTrVLd2dxh41TZaFbdHTwpIlOAJLE3T kzVBHl1N7wih/JpaKd/+NMiXFP8Ut7+gVkmmxuO3YWdtga7wSaVShS74HiVHfTq3K9bu 67XnEici4npQkhOEP8sPog4qKRF9PLc2vmOeRaTA21apyE4XKBCxNYvD1Vi8dA7dlW0S 1mgg== X-Gm-Message-State: AElRT7FMkbSXapMhgYPbygIEA/cuo3b8YIvnnYWED/EZaWLoonYmFM65 eiaLAgy/AxlzcokE+gIgkZ5Pzw== X-Google-Smtp-Source: AG47ELtrHhdgiZ8Y9kg/zNt9Kmz4pl2ytb6fYoXBiqi06hf3H454Kxba/SO94ufCInXfbuHBoGU49Q== 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180309_095054_304210_5DBD71BC X-CRM114-Status: GOOD ( 12.50 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Heiko Stuebner , linux-rockchip@lists.infradead.org, Andrey Smirnov , Kevin Hilman , linux-kernel@vger.kernel.org, Masahiro Yamada , srinivas.kandagatla@linaro.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, Carlo Caione , linux-mediatek@lists.infradead.org, cphealy@gmail.com, Matthias Brugger MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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; }