Skip to content

Commit df74e70

Browse files
Milton Millerozbenh
authored andcommitted
powerpc: Remove trival irq_host_ops.unmap
These all just clear chip or chipdata fields, which will be done by the generic code when we call irq_free_descs. Signed-off-by: Milton Miller <miltonm@bga.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
1 parent 2d44168 commit df74e70

4 files changed

Lines changed: 0 additions & 28 deletions

File tree

‎arch/powerpc/platforms/82xx/pq2ads-pci-pic.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,16 +112,8 @@ static int pci_pic_host_map(struct irq_host *h, unsigned int virq,
112112
return 0;
113113
}
114114

115-
static void pci_host_unmap(struct irq_host *h, unsigned int virq)
116-
{
117-
/* remove chip and handler */
118-
irq_set_chip_data(virq, NULL);
119-
irq_set_chip(virq, NULL);
120-
}
121-
122115
static struct irq_host_ops pci_pic_host_ops = {
123116
.map = pci_pic_host_map,
124-
.unmap = pci_host_unmap,
125117
};
126118

127119
int __init pq2ads_pci_init_irq(void)

‎arch/powerpc/platforms/embedded6xx/flipper-pic.c‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,6 @@ static int flipper_pic_map(struct irq_host *h, unsigned int virq,
107107
return 0;
108108
}
109109

110-
static void flipper_pic_unmap(struct irq_host *h, unsigned int irq)
111-
{
112-
irq_set_chip_data(irq, NULL);
113-
irq_set_chip(irq, NULL);
114-
}
115-
116110
static int flipper_pic_match(struct irq_host *h, struct device_node *np)
117111
{
118112
return 1;
@@ -121,7 +115,6 @@ static int flipper_pic_match(struct irq_host *h, struct device_node *np)
121115

122116
static struct irq_host_ops flipper_irq_host_ops = {
123117
.map = flipper_pic_map,
124-
.unmap = flipper_pic_unmap,
125118
.match = flipper_pic_match,
126119
};
127120

‎arch/powerpc/platforms/embedded6xx/hlwd-pic.c‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,8 @@ static int hlwd_pic_map(struct irq_host *h, unsigned int virq,
100100
return 0;
101101
}
102102

103-
static void hlwd_pic_unmap(struct irq_host *h, unsigned int irq)
104-
{
105-
irq_set_chip_data(irq, NULL);
106-
irq_set_chip(irq, NULL);
107-
}
108-
109103
static struct irq_host_ops hlwd_irq_host_ops = {
110104
.map = hlwd_pic_map,
111-
.unmap = hlwd_pic_unmap,
112105
};
113106

114107
static unsigned int __hlwd_pic_get_irq(struct irq_host *h)

‎arch/powerpc/platforms/ps3/interrupt.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -659,11 +659,6 @@ static void __maybe_unused _dump_mask(struct ps3_private *pd,
659659
static void dump_bmp(struct ps3_private* pd) {};
660660
#endif /* defined(DEBUG) */
661661

662-
static void ps3_host_unmap(struct irq_host *h, unsigned int virq)
663-
{
664-
irq_set_chip_data(virq, NULL);
665-
}
666-
667662
static int ps3_host_map(struct irq_host *h, unsigned int virq,
668663
irq_hw_number_t hwirq)
669664
{
@@ -683,7 +678,6 @@ static int ps3_host_match(struct irq_host *h, struct device_node *np)
683678

684679
static struct irq_host_ops ps3_host_ops = {
685680
.map = ps3_host_map,
686-
.unmap = ps3_host_unmap,
687681
.match = ps3_host_match,
688682
};
689683

0 commit comments

Comments
 (0)