|
@@ -979,6 +979,14 @@ static inline void irq_free_generic_chip(struct irq_chip_generic *gc)
|
|
|
kfree(gc);
|
|
|
}
|
|
|
|
|
|
+static inline void irq_destroy_generic_chip(struct irq_chip_generic *gc,
|
|
|
+ u32 msk, unsigned int clr,
|
|
|
+ unsigned int set)
|
|
|
+{
|
|
|
+ irq_remove_generic_chip(gc, msk, clr, set);
|
|
|
+ irq_free_generic_chip(gc);
|
|
|
+}
|
|
|
+
|
|
|
static inline struct irq_chip_type *irq_data_get_chip_type(struct irq_data *d)
|
|
|
{
|
|
|
return container_of(d->chip, struct irq_chip_type, chip);
|