Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp823028imc; Sun, 10 Mar 2019 23:29:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqyEkhYvYNbzFW7+fxsE8+rcxOhzngEuRGgB6eV33iGm7vqoGnsaLqRPwRoOSX7OR54dqHBy X-Received: by 2002:a17:902:bd87:: with SMTP id q7mr31724176pls.227.1552285761215; Sun, 10 Mar 2019 23:29:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552285761; cv=none; d=google.com; s=arc-20160816; b=lODtF9k5MO6U4G5k2dgdgAsQzhKr4t9BeUx7qvIwIyoIIkRrNJ109t7h4jje1kOb7S bvvX92ZH5qVspgXKrXqPz1LLHBHGNxX0rYI+EbS4yz5ittAOIYXeEAqUZ005m8W3aU7o vM+65FmN3sFOYVpzXsAnPcSobDIky1l8x8zu6kW/VhkfZ7/ilqe0hy10VR664uB8PbCI 06NqlpBz7NdxvDyrLyRCBnGVIHywyaG0izjWqzfhL8CzIeYNX2+MYA79taLIna8c97Zt WKsG3YmemNrbkKEsmWf6yzZ6yk0W6k3tjt2x62w1IqZL8kLgQbYG7InzYFTEn84uX1UP AZug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Ti8CTTyqVMHcCG7X7EwulhuQcYMDuiNtlg/ZNN9cabc=; b=qKH2zeFMcbypSmX+VzDNr6koasSht+oEZY3x+v4f2rOQX2i//dnKk+YAV5dn40fWH0 24tahtdbpaImT8VHdSfbvO1pwvIgpvPmcp9wqyAS1d0ov0rgrF3xbBdJmFy+Qhrhvver gLWVuugGlBhYc4OLxt4a2YwSvE6OfMGjsIvux0ZZKBJbTpgx+I2UgLcgrVcTPltAys5y LN8eUzGeUoMfiHuMUxzky3UcCy9VV/BlJfRdQeoWAhku18sA+k3mD9yM93KPgJuocpTm C9mRNV2/hRHEddWCDemvNu71Gdnc3mI1Xkdfhx66Fhyatl9Eq3I5jZBTzKrq6R5G6ksz XgrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bPC5S0rC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 59si4975671plp.100.2019.03.10.23.29.06; Sun, 10 Mar 2019 23:29:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bPC5S0rC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725850AbfCKG2e (ORCPT + 99 others); Mon, 11 Mar 2019 02:28:34 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:37928 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726834AbfCKG2Q (ORCPT ); Mon, 11 Mar 2019 02:28:16 -0400 Received: by mail-pg1-f194.google.com with SMTP id m2so3262767pgl.5; Sun, 10 Mar 2019 23:28:15 -0700 (PDT) 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 :mime-version:content-transfer-encoding; bh=Ti8CTTyqVMHcCG7X7EwulhuQcYMDuiNtlg/ZNN9cabc=; b=bPC5S0rCKyYd21+kJ9RMCAe7f4nwmBvmI9+envNojwJgEv2z3rXx6gqk21A9IzxYZs eQyIphYd+WlqRmUGhQDxQf9VLFgRuhu5EFYmgH1Fkil27vdapAXACuep6csKPgF294Wi R7ZcRdMUcIPqhf5I236NMPFSd7MbVb2SPvyX0/gdko7l+R6HQiT8WuwLBaARTDWkOOGg xv83y2KxEP1joPzQFlqfgY8BZiDofEg25dXD+rwiHuhY17mMjRLqQMIizemqu8jUTcNo sDEQ9tRfOkgyr28JhjHLnDn8wrBPN2NCCEtINVesyp/elm3stSWobP4P3qV2LgueZxWa hnng== 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:mime-version:content-transfer-encoding; bh=Ti8CTTyqVMHcCG7X7EwulhuQcYMDuiNtlg/ZNN9cabc=; b=tueo4qCJvLjWJ+NNa4p7YDDYCaXc+/hnSbwATWDeaw5aGkPXYMNIz5HUFGBGZyJg+x yxmXrV/ef+nW7K72PTePMUo0tXieGTdhTlld8/evYZkH521iR0n4kmV4/Dd8i004rj2+ wwaNHJ8YqxyqvNup9z2fITZF104rmuFVgKSFzETnrFHjfLR0Vrmp1MrwYhGH9eTLCPq2 skt+ex3/vqiURbCyKG8dLFGfeoWk1FiO5oIZAJqNVwR6rOmVSqyfMnswnPjVmj8nN/nD SolXJg2nysM23JW1hhVRFACjkN5f4HAnq3zORQyPycNNIPXxnFjdqIy0C4v/vBb9IbcX 7n5A== X-Gm-Message-State: APjAAAWLQ9B17mId29I4d6poESGlZ3E7qDODiVHI206PvJ1qLYiD+Mji 0OC/nhXoIeEu+wTG2ZMQYbtlUsPyjJA= X-Received: by 2002:a17:902:e85:: with SMTP id 5mr32639162plx.13.1552285694899; Sun, 10 Mar 2019 23:28:14 -0700 (PDT) Received: from squirtle.lan (c-24-22-235-96.hsd1.wa.comcast.net. [24.22.235.96]) by smtp.gmail.com with ESMTPSA id f192sm10241679pfc.180.2019.03.10.23.28.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 10 Mar 2019 23:28:14 -0700 (PDT) From: Andrey Smirnov To: linux-gpio@vger.kernel.org Cc: Andrey Smirnov , Linus Walleij , Bartosz Golaszewski , Chris Healy , Andrew Lunn , Heiner Kallweit , Fabio Estevam , linux-kernel@vger.kernel.org, linux-imx@nxp.com Subject: [PATCH 7/7] gpio: vf610: Don't use explicit &pdev->dev in vf610_gpio_probe() Date: Sun, 10 Mar 2019 23:27:37 -0700 Message-Id: <20190311062737.6652-8-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190311062737.6652-1-andrew.smirnov@gmail.com> References: <20190311062737.6652-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The code already defines "dev" variable to help with that, so make sure all of the code uses it. Signed-off-by: Andrey Smirnov Cc: Linus Walleij Cc: Bartosz Golaszewski Cc: Chris Healy Cc: Andrew Lunn Cc: Heiner Kallweit Cc: Fabio Estevam Cc: linux-gpio@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-imx@nxp.com --- drivers/gpio/gpio-vf610.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-vf610.c b/drivers/gpio/gpio-vf610.c index 7db2fa229035..6f6558715b88 100644 --- a/drivers/gpio/gpio-vf610.c +++ b/drivers/gpio/gpio-vf610.c @@ -248,7 +248,7 @@ static int vf610_gpio_probe(struct platform_device *pdev) int i; int ret; - port = devm_kzalloc(&pdev->dev, sizeof(*port), GFP_KERNEL); + port = devm_kzalloc(dev, sizeof(*port), GFP_KERNEL); if (!port) return -ENOMEM; @@ -267,7 +267,7 @@ static int vf610_gpio_probe(struct platform_device *pdev) if (port->irq < 0) return port->irq; - port->clk_port = devm_clk_get(&pdev->dev, "port"); + port->clk_port = devm_clk_get(dev, "port"); if (!IS_ERR(port->clk_port)) { ret = clk_prepare_enable(port->clk_port); if (ret) @@ -284,7 +284,7 @@ static int vf610_gpio_probe(struct platform_device *pdev) return PTR_ERR(port->clk_port); } - port->clk_gpio = devm_clk_get(&pdev->dev, "gpio"); + port->clk_gpio = devm_clk_get(dev, "gpio"); if (!IS_ERR(port->clk_gpio)) { ret = clk_prepare_enable(port->clk_gpio); if (ret) -- 2.20.1