|
@@ -6,6 +6,7 @@
|
|
|
* This file contains driver APIs to the irq subsystem.
|
|
|
*/
|
|
|
|
|
|
+#include <linux/config.h>
|
|
|
#include <linux/irq.h>
|
|
|
#include <linux/module.h>
|
|
|
#include <linux/random.h>
|
|
@@ -256,8 +257,11 @@ void free_irq(unsigned int irq, void *dev_id)
|
|
|
/* Found it - now remove it from the list of entries */
|
|
|
*pp = action->next;
|
|
|
|
|
|
+ /* Currently used only by UML, might disappear one day.*/
|
|
|
+#ifdef CONFIG_IRQ_RELEASE_METHOD
|
|
|
if (desc->handler->release)
|
|
|
desc->handler->release(irq, dev_id);
|
|
|
+#endif
|
|
|
|
|
|
if (!desc->action) {
|
|
|
desc->status |= IRQ_DISABLED;
|