| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * TI LP8788 MFD - interrupt handler |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright 2012 Texas Instruments |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * 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 | | - * |
|---|
| 12 | 8 | */ |
|---|
| 13 | 9 | |
|---|
| 14 | 10 | #include <linux/delay.h> |
|---|
| .. | .. |
|---|
| 179 | 175 | IRQF_TRIGGER_FALLING | IRQF_ONESHOT, |
|---|
| 180 | 176 | "lp8788-irq", irqd); |
|---|
| 181 | 177 | if (ret) { |
|---|
| 178 | + irq_domain_remove(lp->irqdm); |
|---|
| 182 | 179 | dev_err(lp->dev, "failed to create a thread for IRQ_N\n"); |
|---|
| 183 | 180 | return ret; |
|---|
| 184 | 181 | } |
|---|
| .. | .. |
|---|
| 192 | 189 | { |
|---|
| 193 | 190 | if (lp->irq) |
|---|
| 194 | 191 | free_irq(lp->irq, lp->irqdm); |
|---|
| 192 | + if (lp->irqdm) |
|---|
| 193 | + irq_domain_remove(lp->irqdm); |
|---|
| 195 | 194 | } |
|---|