|
@@ -22,6 +22,7 @@
|
|
#include <linux/topology.h>
|
|
#include <linux/topology.h>
|
|
#include <linux/wait.h>
|
|
#include <linux/wait.h>
|
|
#include <linux/io.h>
|
|
#include <linux/io.h>
|
|
|
|
+#include <linux/slab.h>
|
|
|
|
|
|
#include <asm/irq.h>
|
|
#include <asm/irq.h>
|
|
#include <asm/ptrace.h>
|
|
#include <asm/ptrace.h>
|
|
@@ -973,6 +974,11 @@ int __irq_alloc_domain_generic_chips(struct irq_domain *d, int irqs_per_chip,
|
|
handler, clr, set, flags); \
|
|
handler, clr, set, flags); \
|
|
})
|
|
})
|
|
|
|
|
|
|
|
+static inline void irq_free_generic_chip(struct irq_chip_generic *gc)
|
|
|
|
+{
|
|
|
|
+ kfree(gc);
|
|
|
|
+}
|
|
|
|
+
|
|
static inline struct irq_chip_type *irq_data_get_chip_type(struct irq_data *d)
|
|
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);
|
|
return container_of(d->chip, struct irq_chip_type, chip);
|