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:
Bartosz Golaszewski 2025-08-25 11:48:45 +02:00
parent 13ba232ed8
commit d6307707d5

View File

@ -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);
}