mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 04:18:39 +08:00
gpio: max77620: remove unneeded platform_set_drvdata() call
This function call is not required because no counterpart platform_get_drvdata() call is present to leverage the private data of the driver. Since the private data is confined to this driver file, external access is not feasible. The use of this function appears redundant in the current context of the driver's implementation. 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
c518e7dc64
commit
ceac51b1ee
@ -331,8 +331,6 @@ static int max77620_gpio_probe(struct platform_device *pdev)
|
||||
girq->init_hw = max77620_gpio_irq_init_hw;
|
||||
girq->threaded = true;
|
||||
|
||||
platform_set_drvdata(pdev, mgpio);
|
||||
|
||||
ret = devm_gpiochip_add_data(&pdev->dev, &mgpio->gpio_chip, mgpio);
|
||||
if (ret < 0) {
|
||||
dev_err(&pdev->dev, "gpio_init: Failed to add max77620_gpio\n");
|
||||
|
Loading…
Reference in New Issue
Block a user