hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/mfd/lp8788-irq.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * TI LP8788 MFD - interrupt handler
34 *
45 * Copyright 2012 Texas Instruments
56 *
67 * Author: Milo(Woogyom) Kim <milo.kim@ti.com>
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2 as
10
- * published by the Free Software Foundation.
11
- *
128 */
139
1410 #include <linux/delay.h>
....@@ -179,6 +175,7 @@
179175 IRQF_TRIGGER_FALLING | IRQF_ONESHOT,
180176 "lp8788-irq", irqd);
181177 if (ret) {
178
+ irq_domain_remove(lp->irqdm);
182179 dev_err(lp->dev, "failed to create a thread for IRQ_N\n");
183180 return ret;
184181 }
....@@ -192,4 +189,6 @@
192189 {
193190 if (lp->irq)
194191 free_irq(lp->irq, lp->irqdm);
192
+ if (lp->irqdm)
193
+ irq_domain_remove(lp->irqdm);
195194 }