Message ID | 20171227225956.14442-18-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 EBCED6020A for <patchwork-linux-amlogic@patchwork.kernel.org>; Wed, 27 Dec 2017 23:08:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DEB8E2CF46 for <patchwork-linux-amlogic@patchwork.kernel.org>; Wed, 27 Dec 2017 23:08:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D38CA2D4C4; Wed, 27 Dec 2017 23:08:46 +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 55A672CF46 for <patchwork-linux-amlogic@patchwork.kernel.org>; Wed, 27 Dec 2017 23:08:46 +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=nBN+4BoSo00+Im1UB/MleKnKB/9BfvcjXxgDirrZlHU=; b=Ti8wg1cEPxeQCgxcgPf4JcvIWb jupoGJCWY0+WuJJ9ywh0arIcNW02JVElPfxdU5twxY3iNVX6ND4llTxkaySzlLh25V9X38dzp4AHW 5R546MBdjMQ9LeeqsgtvbEpilbkGKgKxnSq8d+s43654P/tsyIPLjRTKRwVVyrTr8xxIKW259p+u/ vxo29Bfq1hSz7w36tlSamkETTvz/3fo90SI26fFji7xzHHswWniO+sEXZS0pwY/77niDcf2HKU8IC sWm4z+U/AUdF+d8pGi3wj17jMDujAJGdr2FNCf5MEz1GU2Dzp3uV1DlpzEeWt0H/vb+yPHAjEkaAy zZQZY9hQ==; 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 1eUKoO-00023C-1H; Wed, 27 Dec 2017 23:08:36 +0000 Received: from mail-pl0-x244.google.com ([2607:f8b0:400e:c01::244]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eUKgk-0004du-4m; Wed, 27 Dec 2017 23:01:07 +0000 Received: by mail-pl0-x244.google.com with SMTP id i6so20128920plt.13; Wed, 27 Dec 2017 15:00:41 -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=cV47MH0fTC+r4+r8QHNf07wOWavh0fm+LbzsPiNe7fo=; b=OCUyDWIdt6OrIsO87VZr411bujDpf4tsq6oX79sodOeC3uJcf0o+yE041/UaPyj3SO 5vxzkFGBQsEa+XrD8hh697aQ2G4NIjiPitlQuT6tbTjw1lhWgB2cuggIjpTUMBbRKMkQ 0JJofJDNnNiK0fYYkTrew7JcJf69TXP/dHZaXPrS8ChUsOHzMOrqmpVSdoeHwqr9kpMF M3/zn8sEjULq1iiBchdmWRyEAE8SXsBeGXlHo6S+DVdRzgrQVVNoGMv/jSRdfh66Esh3 NfNuxwwdc9dOZEJvQ4sWI5MfUrdXMGuItMCd3tDuUMXIwxkMEQExn1fcjNckJtV4HANX 7zow== 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=cV47MH0fTC+r4+r8QHNf07wOWavh0fm+LbzsPiNe7fo=; b=Lon/7Aq8g84cGXR9YYjBSNF3Lkg3TuwIF6pKil2/hcrgthNznOg4sQIKWjFGbbbHPM L4d3i8AxvaW87Gt8406vKEgxcMWQugSQ7AC3VYrWzkaqfebfNe+OKyK1ipHb3ykhy+3V TzBTdssmC+xzmnRdRwymWQqeueVSoWOcAED4fLsZS7wolANeIMzUmnOTmn2M+wYSexfW itXAgzw6A8mFzWrNT0NGOkPQm4SuH40RSEz9ovNZklrADa3Kappne1M22PcJSJPkQH5y BhZktWwMpPkll3woxMEUSYuBtoIKNJm+3R/EWgBkJ6g1P5oT2Gxa9Beh7545Tw7lYdSc jfrQ== X-Gm-Message-State: AKGB3mK22jE1bFph9dDMwYXGP4SIP1LeGtz8fGy+tJh7oBl2Q3UBEGAQ va9DlRur/yuD0vSqLkfdE/E= X-Google-Smtp-Source: ACJfBosbLYmx/YyOZtweUKh11m18odlZR+U9z7xAcl1x4uN0pGc4pdxpUoOX0sWYGfZDohlbCxA4Nw== X-Received: by 10.84.252.146 with SMTP id y18mr29621800pll.70.1514415640871; Wed, 27 Dec 2017 15:00:40 -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.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 Dec 2017 15:00:39 -0800 (PST) From: Andrey Smirnov <andrew.smirnov@gmail.com> To: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Subject: [PATCH 17/20] nvmem: vf610-ocotp: Do not use "&pdev->dev" explicitly Date: Wed, 27 Dec 2017 14:59:53 -0800 Message-Id: <20171227225956.14442-18-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_150043_128972_DDE5BB9F X-CRM114-Status: UNSURE ( 7.93 ) X-CRM114-Notice: Please train this message. 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>, Joachim Eastwood <manabian@gmail.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/vf610-ocotp.c b/drivers/nvmem/vf610-ocotp.c index 752a0983e7fb..6e6bf7987d9d 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: Joachim Eastwood <manabian@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(-)