diff options
Diffstat (limited to 'drivers/mfd/twl6040-irq.c')
-rw-r--r-- | drivers/mfd/twl6040-irq.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/mfd/twl6040-irq.c b/drivers/mfd/twl6040-irq.c index 938053541520..b3f8ddaa28a8 100644 --- a/drivers/mfd/twl6040-irq.c +++ b/drivers/mfd/twl6040-irq.c | |||
@@ -148,19 +148,6 @@ int twl6040_irq_init(struct twl6040 *twl6040) | |||
148 | twl6040->irq_masks_cache = TWL6040_ALLINT_MSK; | 148 | twl6040->irq_masks_cache = TWL6040_ALLINT_MSK; |
149 | twl6040_reg_write(twl6040, TWL6040_REG_INTMR, TWL6040_ALLINT_MSK); | 149 | twl6040_reg_write(twl6040, TWL6040_REG_INTMR, TWL6040_ALLINT_MSK); |
150 | 150 | ||
151 | if (!twl6040->irq) { | ||
152 | dev_warn(twl6040->dev, | ||
153 | "no interrupt specified, no interrupts\n"); | ||
154 | twl6040->irq_base = 0; | ||
155 | return 0; | ||
156 | } | ||
157 | |||
158 | if (!twl6040->irq_base) { | ||
159 | dev_err(twl6040->dev, | ||
160 | "no interrupt base specified, no interrupts\n"); | ||
161 | return 0; | ||
162 | } | ||
163 | |||
164 | /* Register them with genirq */ | 151 | /* Register them with genirq */ |
165 | for (cur_irq = twl6040->irq_base; | 152 | for (cur_irq = twl6040->irq_base; |
166 | cur_irq < twl6040->irq_base + ARRAY_SIZE(twl6040_irqs); | 153 | cur_irq < twl6040->irq_base + ARRAY_SIZE(twl6040_irqs); |
@@ -199,7 +186,6 @@ EXPORT_SYMBOL(twl6040_irq_init); | |||
199 | 186 | ||
200 | void twl6040_irq_exit(struct twl6040 *twl6040) | 187 | void twl6040_irq_exit(struct twl6040 *twl6040) |
201 | { | 188 | { |
202 | if (twl6040->irq) | 189 | free_irq(twl6040->irq, twl6040); |
203 | free_irq(twl6040->irq, twl6040); | ||
204 | } | 190 | } |
205 | EXPORT_SYMBOL(twl6040_irq_exit); | 191 | EXPORT_SYMBOL(twl6040_irq_exit); |