gpio: tqmx86: Drop unnecessary gpiochip_remove in tqmx86_gpio_probe()
Subsystems (3)
PATCH 1/1 gpio: tqmx86: Drop unnecessary gpiochip_remove in tqmx86_gpio_probe()
It's not necessary to remove gpio_chip which added with devm_gpiochip_add_data().
Fixes b868db94a6a7 ("gpio: tqmx86: Add GPIO from for this IO controller")
Signed-off-by Wei Yongjun <[email protected]>
--- drivers/gpio/gpio-tqmx86.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/gpio/gpio-tqmx86.c +1 -3
@@ -291,7 +291,7 @@ static int tqmx86_gpio_probe(struct platform_device *pdev) IRQ_TYPE_EDGE_BOTH);if (ret) {dev_err (dev,"Could not add irq chip\n" ); - goto out_remove; + goto out_pm_dis; } gpiochip_set_chained_irqchip(chip, irq_chip,
@@ -309,8 +309,6 @@ static int tqmx86_gpio_probe(struct platform_device *pdev)return 0 ; -out_remove: -gpiochip_remove (&gpio->chip); out_pm_dis:pm_runtime_disable (&pdev->dev);
Quoted 5 lines · Wei Yongjun
It's not necessary to remove
gpio_chipwhich added withdevm_gpiochip_add_data().Fixes b868db94a6a7 ("gpio: tqmx86: Add GPIO from for this IO controller")Signed-off-by Wei Yongjun <[email protected]>
Reviewed-by Andrew Lunn <[email protected]>
Andrew
Quoted 5 lines · Wei Yongjun
It's not necessary to remove
gpio_chipwhich added withdevm_gpiochip_add_data().Fixes b868db94a6a7 ("gpio: tqmx86: Add GPIO from for this IO controller")Signed-off-by Wei Yongjun <[email protected]>
Patch applied with Andew's review tag.
Yours,
Linus Walleij