]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[AVR32] Export intc_get_pending symbol
authorHaavard Skinnemoen <hskinnemoen@atmel.com>
Wed, 31 Oct 2007 19:34:11 +0000 (20:34 +0100)
committerHaavard Skinnemoen <hskinnemoen@atmel.com>
Thu, 15 Nov 2007 12:47:20 +0000 (13:47 +0100)
Oprofile needs to call intc_get_pending() in order to determine
whether a performance counter interrupt is pending.

Also, include the header which declares intc_get_pending() and fix the
definition to match the prototype.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
arch/avr32/mach-at32ap/intc.c

index dd5c009cf224838379af65d498c35ed7357afcf2..0b286cd53028a469441af1ad99b56f97a6c37287 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/irq.h>
 #include <linux/platform_device.h>
 
+#include <asm/intc.h>
 #include <asm/io.h>
 
 #include "intc.h"
@@ -136,7 +137,8 @@ fail:
        panic("Interrupt controller initialization failed!\n");
 }
 
-unsigned long intc_get_pending(int group)
+unsigned long intc_get_pending(unsigned int group)
 {
        return intc_readl(&intc0, INTREQ0 + 4 * group);
 }
+EXPORT_SYMBOL_GPL(intc_get_pending);