mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-28 16:56:26 +00:00
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: Alexandru Ardelean <alex@shruggie.ro> Signed-off-by: Andrei Coardos <aboutphysycs@gmail.com> Reviewed-by: Andy Shevchenko <andy@kernel.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
This commit is contained in:
parent
ba8a90e8cb
commit
8020619ad7
@ -138,8 +138,6 @@ static int logicvc_gpio_probe(struct platform_device *pdev)
|
||||
logicvc->chip.set = logicvc_gpio_set;
|
||||
logicvc->chip.direction_output = logicvc_gpio_direction_output;
|
||||
|
||||
platform_set_drvdata(pdev, logicvc);
|
||||
|
||||
return devm_gpiochip_add_data(dev, &logicvc->chip, logicvc);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user