Message ID | 20180308191205.26943-19-andrew.smirnov@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=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 185406037E for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 8 Mar 2018 19:28:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 06C3529993 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 8 Mar 2018 19:28:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EF82229AF1; Thu, 8 Mar 2018 19:28: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 5D0A629993 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 8 Mar 2018 19:28:20 +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=wzT3bPicRtvq7gWUPeH2CpcNfXugeNQcoytkZ2xxJ1I=; b=JYB6xt2uWZVWnLxgHTcwSsvC8n NoXNKhw31y6EmJ8s2kbdL4HYvzopZ/RolgIcX1HQcW1zDjxTFm6lf/Fi2WBnESAsbA3w8/2oCFWqh ujnoJzuv/3/Tyr6OmkwI3c1CIzlitNQDz0EfPKm9fIsO1DAmX7E0v1VqS0cmW0819Tz6MXkyZUy5u gIuOlWbEhZXTKvLlZBhGrXhskDjg/YjwARh+4vEdQkoel/K+uGG9P8o/xq0oOrq9OY5KBjfQfUCMa gXx6ca5mDfhXuwTC0jTj7JgYIFf7VNjmEBlNreczHeLVEg0qLznPGIxpKf3TvxFPMMWmO4loPp0/l Q0KmAF5g==; 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 1eu1D1-0005yM-GT; Thu, 08 Mar 2018 19:28:11 +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 1eu0yI-00023R-Ud; Thu, 08 Mar 2018 19:13:22 +0000 Received: by mail-pg0-x244.google.com with SMTP id i133so2582252pgc.12; Thu, 08 Mar 2018 11:12:48 -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=bWWgZA3O9woBhTRZx5/uKY/Cd5eeHZSqMWYaCYGDics=; b=q4SAcmXiSKcY3LMmf2JD2cLe2OGe4RSdZd/K8TBKuh1PASL22An4dgG5mlY7v9W0eD L2HbfUTweYveUvkFa6ZkPJuOcHiDuWoC9DAVcbyVJIYDMxntuWU2kxgciIEMdz2E2kMV QcIZG9ezwZjxCm+vfXB5gbNrI/GS5cK0+FDy/4bYinHE46PJYeRIzeaIOXqjR7kopaYN hwI3D1/JhRUE3wDGA6Ixm/At+GXbovgEwVMcCGPYYqBDAvNZawbEmiJmw9sUm3M2u5+F FdkUahBKSj0ZNDl5NwpcgvF77YbHgkdNM9aALS+K6J8Lrxi3yn9mEeyPIKO/h4GB186f EczQ== 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=bWWgZA3O9woBhTRZx5/uKY/Cd5eeHZSqMWYaCYGDics=; b=qAZa2hxkSjLVkJwfSPisy5Y9efKoRjoUwKqNIpBE1U/sI8yklOyJ9nw/0JiF//DtNX OQIZLXqhQx8VE0e7Hs2gJhYjZgyyGq6r7FRc4XNOHK1ckQa/ZkStjGSCl4CgbM4WgXRz bkaQxtxywM5tQdqObcWyFWkoUvVywvTPI0fW75qHLvZEGlnYXR5lMZf39Arp/ooyy4Ra 5gbcWiR7WJLwm1gYkIG6iTzLFlNAVwNyPdKB0LGRJMfbIzAQ4zACazCL4Ki/uT1W54yI Gb5ToPRxuYtybwSkjX4g3sN3riPjGfiq0XnJHiZqwaOCdpMCA7TqqKqTAqCUnWFKQi6q 6FmA== X-Gm-Message-State: APf1xPBVsWzIJJiUsNGdihVIJU+Tavtk2rI/XEh6OtNVRgz49xjjhExF AXPnxqCOV+OHXDJb3Rde3gk= X-Google-Smtp-Source: AG47ELv/ojAWF+J4Ikx8Wtdhw89HZ4nl09uzyoYCs+3pCVUkh5f/QPeDjyt0P1RbLkbh2Vd3B7K52Q== X-Received: by 10.98.11.19 with SMTP id t19mr27437365pfi.70.1520536367761; Thu, 08 Mar 2018 11:12:47 -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.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Mar 2018 11:12:47 -0800 (PST) From: Andrey Smirnov <andrew.smirnov@gmail.com> To: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Subject: [PATCH v5 18/21] nvmem: vf610-ocotp: Do not use "&pdev->dev" explicitly Date: Thu, 8 Mar 2018 11:12:02 -0800 Message-Id: <20180308191205.26943-19-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_111259_728634_F1DDA8B1 X-CRM114-Status: GOOD ( 10.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-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-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/nvmem/vf610-ocotp.c b/drivers/nvmem/vf610-ocotp.c index 5a395ffb2ca8..4662309489db 100644 --- a/drivers/nvmem/vf610-ocotp.c +++ b/drivers/nvmem/vf610-ocotp.c @@ -223,8 +223,7 @@ static int vf610_ocotp_probe(struct platform_device *pdev) struct resource *res; struct vf610_ocotp *ocotp_dev; - ocotp_dev = devm_kzalloc(&pdev->dev, - sizeof(struct vf610_ocotp), GFP_KERNEL); + ocotp_dev = devm_kzalloc(dev, sizeof(struct vf610_ocotp), GFP_KERNEL); if (!ocotp_dev) return -ENOMEM;
There already a "dev" variable for that. 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/vf610-ocotp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)