diff options
Diffstat (limited to 'kernel/irq/chip.c')
-rw-r--r-- | kernel/irq/chip.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c index df51792d9fd3..b7dd02a99c80 100644 --- a/kernel/irq/chip.c +++ b/kernel/irq/chip.c | |||
@@ -376,6 +376,11 @@ static int compat_irq_set_affinity(struct irq_data *data, | |||
376 | return data->chip->set_affinity(data->irq, dest); | 376 | return data->chip->set_affinity(data->irq, dest); |
377 | } | 377 | } |
378 | 378 | ||
379 | static int compat_irq_set_type(struct irq_data *data, unsigned int type) | ||
380 | { | ||
381 | return data->chip->set_type(data->irq, type); | ||
382 | } | ||
383 | |||
379 | static void compat_bus_lock(struct irq_data *data) | 384 | static void compat_bus_lock(struct irq_data *data) |
380 | { | 385 | { |
381 | data->chip->bus_lock(data->irq); | 386 | data->chip->bus_lock(data->irq); |
@@ -444,6 +449,8 @@ void irq_chip_set_defaults(struct irq_chip *chip) | |||
444 | chip->irq_eoi = compat_irq_eoi; | 449 | chip->irq_eoi = compat_irq_eoi; |
445 | if (chip->set_affinity) | 450 | if (chip->set_affinity) |
446 | chip->irq_set_affinity = compat_irq_set_affinity; | 451 | chip->irq_set_affinity = compat_irq_set_affinity; |
452 | if (chip->set_type) | ||
453 | chip->irq_set_type = compat_irq_set_type; | ||
447 | } | 454 | } |
448 | 455 | ||
449 | static inline void mask_ack_irq(struct irq_desc *desc) | 456 | static inline void mask_ack_irq(struct irq_desc *desc) |