Message ID | 20180103200114.23922-20-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 055CD60594 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 3 Jan 2018 20:12:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED575292B0 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 3 Jan 2018 20:12:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E243F292CE; Wed, 3 Jan 2018 20:12:19 +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 94FEE292B0 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 3 Jan 2018 20:12:19 +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=6R67qMhOwh2ulLhQfemNmo7UCyowVDgkfE3XVvmd91k=; b=M30z5Yel0JH6ysawVI7cgsaF69 O8h1QfoIrt8RXqdQKIWsCBSsa/b7S9xsooanmedBwEqDzkuBxKNOtNOJEpcU0JdxhARpXapxpDB1s ICEosGTvPGtY5ScI7nhNZa2eHlxQhu0C5ZRIG1WkLhLFbbSSfdTLmtrt5SKCSmHx3xURnzfUBwhMH WOxx1WXqDGlu7gTaWzKUemwB90z/5ejEJjRC/J8LcOWniK81EeSBZGTHtqPeS3ScXCjK38TpPC4+9 RbJ8jjyQCBTDWqBdiYRqwr7oiLEwRa+smXGnjbtIYU/sYfKij1wORZUwse4NWhP6UY840yTBPDhZ6 uG6gSGqw==; 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 1eWpOW-0004g4-4f; Wed, 03 Jan 2018 20:12:12 +0000 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eWpEX-0004gS-V5; Wed, 03 Jan 2018 20:02:46 +0000 Received: by mail-pf0-x241.google.com with SMTP id a90so1175517pfk.1; Wed, 03 Jan 2018 12:01:43 -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=lg4eyUmaCE3igZJjvDMpiyYwjhFhCmbbYu127BYnU4Y=; b=UU1bghi2buwN7hzb7quxGBGm4BE7qrLwP5iLhmYz2oIvQif41r+YsbrHS6/ZVY30BF ObZPvrzOqxABeBvwPCZnYbLLTaxilDIyaubsz7AeViCatNXf/E3QNGldB928awRRuEmF bVF75FMeHCsQMgQ9TLCCJdCgFtkBMlvtnZ5YHQeAckDSNdY9TM+RnBkctljTTrfE4wPo 93/66Rpf+TU+jmvQsPNHTMFCDqHwRHk4Egl+Q79PbyWrugbbUwIcyyF+PObnZLLLtwKV C1N7JsxvPQ9OlpbJaaXivJ0GlBA1QyxLNf6IQPtxtoNlB3vkqgJSBNyjRlrrvPagZNqp Khzw== 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=lg4eyUmaCE3igZJjvDMpiyYwjhFhCmbbYu127BYnU4Y=; b=Xrpd4/jT+9K3Zg41YPazcRzlvCKYShFVPzDedWgrTzl+hvnn0vqIy3vGge2/bUmzyp 576eZQh/YvGUvsG9Fxb6zYqlVsOIIAJiiCkwKsZ8PHehzvVUX7wf10m5Rkcpaz8pC4HU DTJNmtdM55NhirB3WKjyN6B7Jy2Gow3K6uBLZ1WzL0a1ZGiwVHktN1I0QrP8/Aa8tue7 JArqBDfX6Y6wz6hRWyKN11Ey5NjBiCRj4dMNJ4rNd4zrxIPU54VhcyM1rLaFOEANHtgj kOsuMZLkpzYXfXXYBVDXSlxQjLE7nJk7MjUV+IO7cOKtzbdJu7RLdHcZXqXEep2zydT7 tUew== X-Gm-Message-State: AKGB3mLpopM+wt2kP7zXnuZ/MKwXLdkVkkCAeCqSrFdj7oWkhKoSttgD lZRI5Yttyj1rbhgFYD993Cc= X-Google-Smtp-Source: ACJfBoubfxbH7g3RI+PlxP6N3TeZ/jUSmoSvj2hqMRh++eBqeLAsHLqMz21/yxtGsXARothF/5rPNQ== X-Received: by 10.98.103.156 with SMTP id t28mr2414371pfj.234.1515009701995; Wed, 03 Jan 2018 12:01:41 -0800 (PST) Received: from squirtle.westlake.spaceflightindustries.com ([173.226.206.194]) by smtp.gmail.com with ESMTPSA id b9sm4542209pfl.108.2018.01.03.12.01.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 Jan 2018 12:01:41 -0800 (PST) From: Andrey Smirnov <andrew.smirnov@gmail.com> To: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Subject: [PATCH v3 19/22] nvmem: vf610-ocotp: Do not use "&pdev->dev" explicitly Date: Wed, 3 Jan 2018 12:01:11 -0800 Message-Id: <20180103200114.23922-20-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180103200114.23922-1-andrew.smirnov@gmail.com> References: <20180103200114.23922-1-andrew.smirnov@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180103_120154_763747_C7D27FE3 X-CRM114-Status: UNSURE ( 7.77 ) 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: <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 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: 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(-)