diff options
Diffstat (limited to 'include/linux/interrupt.h')
-rw-r--r-- | include/linux/interrupt.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h index 6fc2b720c231..dbf6a6fd116c 100644 --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h | |||
@@ -123,9 +123,20 @@ extern void free_irq(unsigned int, void *); | |||
123 | 123 | ||
124 | struct device; | 124 | struct device; |
125 | 125 | ||
126 | extern int __must_check devm_request_irq(struct device *dev, unsigned int irq, | 126 | extern int __must_check |
127 | irq_handler_t handler, unsigned long irqflags, | 127 | devm_request_threaded_irq(struct device *dev, unsigned int irq, |
128 | const char *devname, void *dev_id); | 128 | irq_handler_t handler, irq_handler_t thread_fn, |
129 | unsigned long irqflags, const char *devname, | ||
130 | void *dev_id); | ||
131 | |||
132 | static inline int __must_check | ||
133 | devm_request_irq(struct device *dev, unsigned int irq, irq_handler_t handler, | ||
134 | unsigned long irqflags, const char *devname, void *dev_id) | ||
135 | { | ||
136 | return devm_request_threaded_irq(dev, irq, handler, NULL, irqflags, | ||
137 | devname, dev_id); | ||
138 | } | ||
139 | |||
129 | extern void devm_free_irq(struct device *dev, unsigned int irq, void *dev_id); | 140 | extern void devm_free_irq(struct device *dev, unsigned int irq, void *dev_id); |
130 | 141 | ||
131 | /* | 142 | /* |