mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 12:35:52 +02:00
gpio: ts4800: remove the unnecessary call to platform_set_drvdata()
There's no corresponding call to platform_get_drvdata() or dev_get_drvdata(). Remove the call to platform_set_drvdata() from .probe(). Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20250825-gpio-mmio-gpio-conv-v1-4-356b4b1d5110@linaro.org Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
This commit is contained in:
parent
13ba232ed8
commit
d6307707d5
|
|
@ -51,8 +51,6 @@ static int ts4800_gpio_probe(struct platform_device *pdev)
|
|||
|
||||
chip->ngpio = ngpios;
|
||||
|
||||
platform_set_drvdata(pdev, chip);
|
||||
|
||||
return devm_gpiochip_add_data(&pdev->dev, chip, NULL);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user