From patchwork Wed Feb 28 14:41:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10247867 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 47E3960365 for ; Wed, 28 Feb 2018 14:55:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 382C728CDC for ; Wed, 28 Feb 2018 14:55:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2CD6228CEB; Wed, 28 Feb 2018 14:55:42 +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 D784728CDC for ; Wed, 28 Feb 2018 14:55:41 +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=u/qix1TnOZ73Pj4mtru6PbDjoh NrWw0N8xqFGLjvKKA8gnV9baoICeIk4ZHWfknSrDjQxBs8qDoO244fpVtnxkUlLVIQ9AQ7B0SpaBn 03Viq82NGvd72Jmdg6Mcvut5prc52LCOZUgaUDkoeP4b7E2s/7/MkM0k0ZnVE9WDVrfO642pcHzY5 rqlPY0nohfbWF+T9kLOfzeyL9RChKvUsIC9L6BLhPFBhX3jse1Lmnd0sGY8QTOVYnMA0J461TNnbS 2tLCQqR9EOcHnNLQ6XNzjUuDgwj9UFm8ZFEuHKwo0dX7XmlOOpGFQdd7nt7VGg20pb9L9vsfeW2uj fKG1M6FQ==; 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 1er38o-00042q-0y; Wed, 28 Feb 2018 14:55:34 +0000 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1er2vh-0000HY-1p; Wed, 28 Feb 2018 14:42:16 +0000 Received: by mail-pf0-x243.google.com with SMTP id d26so1068396pfn.5; Wed, 28 Feb 2018 06:41:52 -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=rEEW9TY4rmDXSNbnItZxAMqTmOLi4ZsvBy/nfALpQLTdJhyot0JDk4ozoLfpgnTy9A 9Z86yBaXd8PKuz1T9sWEGLwjUJZMWgHoDaPvUvf5Jp+ZO1CVjxClC8ZQyHmtQ+FpibvU NYPhuqN56PgnRqZ973wejA1dHCCJFeL1/jpRPQvYYY3wuo+2hYtg5rgadSyu/+kXXkGE NDz82hEKelvo/J/FqyzrjFPusH88Ye88dagmulMIKysSw5+kKaQcXnD/APOAqgAICF6r aB3ym669lt0Thje/D4DKBLF4X4XE31KtMpSZWIE1zg+urrEELTpdbRUUAfAE3yFbrRsf 1SLg== 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=MG8oa/Sr8gz/yCwFDJzpW5jNtj8u9bLkfxPRrgBKzwasuA6uHBnyGMnmflpNp8bOq0 SwwgKtchioQCsR/Dp3TUTpZQx6L/GmGYvZBLpsXu06dHsjIUDg4JD+R4RwIQKhWTbume P0dIuwo5iAEpzD/xMs+VRmjIbfbv3moOLbOEEJy2pScK5rdPmm8Pc3AVTP0OOLca71AV +EeC9jON139UfXHQleI98rwncVj4kR5K/mqj+Jmz8GdrrYMGzAzGrynVBt/IRPEDbsAW F9D8Dt8Thgb02btR96FbzO5h64m8ZVwaNDdw/Hrva/c1Ee/ifc6R24qaz9EsAghOi5i0 K2wA== X-Gm-Message-State: APf1xPAX3qA2x5dVr8LdiGkIYOhQzJ90W8FBqqWiF2YZVLP8cWMQSFtN /gkJWGv6MYvnaiD3Dp8rkGg= X-Google-Smtp-Source: AH8x224HhznzZvqLunn5Xt2hP45M6ICZTqxiU29UkJ+J5HL3n/6G68UNTr+Wp7i9U19HqYB0RiBUGw== X-Received: by 10.99.171.10 with SMTP id p10mr14290117pgf.176.1519828911357; Wed, 28 Feb 2018 06:41:51 -0800 (PST) Received: from squirtle.westlake.spaceflightindustries.com ([173.226.206.194]) by smtp.gmail.com with ESMTPSA id h9sm3674312pgr.78.2018.02.28.06.41.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Feb 2018 06:41:50 -0800 (PST) From: Andrey Smirnov To: Srinivas Kandagatla Subject: [PATCH v4 19/22] nvmem: vf610-ocotp: Do not use "&pdev->dev" explicitly Date: Wed, 28 Feb 2018 06:41:03 -0800 Message-Id: <20180228144106.16363-20-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180228144106.16363-1-andrew.smirnov@gmail.com> References: <20180228144106.16363-1-andrew.smirnov@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180228_064201_451750_01EAD9DF X-CRM114-Status: GOOD ( 10.66 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: 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 , linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Matthias Brugger , linux-amlogic@lists.infradead.org, Carlo Caione , cphealy@gmail.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP There already a "dev" variable for that. 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 --- drivers/nvmem/vf610-ocotp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;