Commit 2e35bb6c authored by Andrey Smirnov's avatar Andrey Smirnov Committed by Bartosz Golaszewski

gpio: vf610: Don't use explicit &pdev->dev in vf610_gpio_probe()

The code already defines "dev" variable to help with that, so make
sure all of the code uses it.
Signed-off-by: default avatarAndrey Smirnov <andrew.smirnov@gmail.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Cc: Chris Healy <cphealy@gmail.com>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Heiner Kallweit <hkallweit1@gmail.com>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: linux-gpio@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-imx@nxp.com
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
parent a74b4b11
...@@ -248,7 +248,7 @@ static int vf610_gpio_probe(struct platform_device *pdev) ...@@ -248,7 +248,7 @@ static int vf610_gpio_probe(struct platform_device *pdev)
int i; int i;
int ret; int ret;
port = devm_kzalloc(&pdev->dev, sizeof(*port), GFP_KERNEL); port = devm_kzalloc(dev, sizeof(*port), GFP_KERNEL);
if (!port) if (!port)
return -ENOMEM; return -ENOMEM;
...@@ -267,7 +267,7 @@ static int vf610_gpio_probe(struct platform_device *pdev) ...@@ -267,7 +267,7 @@ static int vf610_gpio_probe(struct platform_device *pdev)
if (port->irq < 0) if (port->irq < 0)
return port->irq; 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)) { if (!IS_ERR(port->clk_port)) {
ret = clk_prepare_enable(port->clk_port); ret = clk_prepare_enable(port->clk_port);
if (ret) if (ret)
...@@ -284,7 +284,7 @@ static int vf610_gpio_probe(struct platform_device *pdev) ...@@ -284,7 +284,7 @@ static int vf610_gpio_probe(struct platform_device *pdev)
return PTR_ERR(port->clk_port); 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)) { if (!IS_ERR(port->clk_gpio)) {
ret = clk_prepare_enable(port->clk_gpio); ret = clk_prepare_enable(port->clk_gpio);
if (ret) if (ret)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment