hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/gpio/gpio-tb10x.c
....@@ -195,7 +195,7 @@
195195 handle_edge_irq, IRQ_NOREQUEST, IRQ_NOPROBE,
196196 IRQ_GC_INIT_MASK_CACHE);
197197 if (ret)
198
- return ret;
198
+ goto err_remove_domain;
199199
200200 gc = tb10x_gpio->domain->gc->gc[0];
201201 gc->reg_base = tb10x_gpio->base;
....@@ -209,6 +209,10 @@
209209 }
210210
211211 return 0;
212
+
213
+err_remove_domain:
214
+ irq_domain_remove(tb10x_gpio->domain);
215
+ return ret;
212216 }
213217
214218 static int tb10x_gpio_remove(struct platform_device *pdev)