Skip to content

Commit 7ee342b

Browse files
Milton Millerozbenh
authored andcommitted
powerpc: Remove i8259 irq_host_ops->unmap
It was never called because the host is always IRQ_HOST_MAP_LEGACY. And what it purported to do was mask the interrupt (which will already have happend if we shutdown the interrupt), then synchronise_irq and clear the chip pointer, both of which will have been be done by the caller were we to call unmap on a legacy irq. Signed-off-by: Milton Miller <miltonm@bga.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
1 parent df74e70 commit 7ee342b

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

‎arch/powerpc/sysdev/i8259.c‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -185,18 +185,6 @@ static int i8259_host_map(struct irq_host *h, unsigned int virq,
185185
return 0;
186186
}
187187

188-
static void i8259_host_unmap(struct irq_host *h, unsigned int virq)
189-
{
190-
/* Make sure irq is masked in hardware */
191-
i8259_mask_irq(irq_get_irq_data(virq));
192-
193-
/* remove chip and handler */
194-
irq_set_chip_and_handler(virq, NULL, NULL);
195-
196-
/* Make sure it's completed */
197-
synchronize_irq(virq);
198-
}
199-
200188
static int i8259_host_xlate(struct irq_host *h, struct device_node *ct,
201189
const u32 *intspec, unsigned int intsize,
202190
irq_hw_number_t *out_hwirq, unsigned int *out_flags)
@@ -220,7 +208,6 @@ static int i8259_host_xlate(struct irq_host *h, struct device_node *ct,
220208
static struct irq_host_ops i8259_host_ops = {
221209
.match = i8259_host_match,
222210
.map = i8259_host_map,
223-
.unmap = i8259_host_unmap,
224211
.xlate = i8259_host_xlate,
225212
};
226213

0 commit comments

Comments
 (0)