Commit 8020619a authored by Andrei Coardos's avatar Andrei Coardos Committed by Bartosz Golaszewski

gpio: logicvc: remove unneeded platform_set_drvdata() call

The platform_set_drvdata() isn't needed for anything. The function is a
simple setter that doesn't change anything in the code. That is because
there isn't a get function and since it has no dependencies it can be
removed.
Reviewed-by: default avatarAlexandru Ardelean <alex@shruggie.ro>
Signed-off-by: default avatarAndrei Coardos <aboutphysycs@gmail.com>
Reviewed-by: default avatarAndy Shevchenko <andy@kernel.org>
Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
parent ba8a90e8
...@@ -138,8 +138,6 @@ static int logicvc_gpio_probe(struct platform_device *pdev) ...@@ -138,8 +138,6 @@ static int logicvc_gpio_probe(struct platform_device *pdev)
logicvc->chip.set = logicvc_gpio_set; logicvc->chip.set = logicvc_gpio_set;
logicvc->chip.direction_output = logicvc_gpio_direction_output; logicvc->chip.direction_output = logicvc_gpio_direction_output;
platform_set_drvdata(pdev, logicvc);
return devm_gpiochip_add_data(dev, &logicvc->chip, logicvc); return devm_gpiochip_add_data(dev, &logicvc->chip, logicvc);
} }
......
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