aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/irqchip
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2013-04-25 10:49:05 -0400
committerArnd Bergmann <arnd@arndb.de>2013-04-29 10:34:34 -0400
commitbc8fd900c4d460b4e4bf785bb48bfced0ac9941b (patch)
treeff9f1cedc910be5ec4c9ec7c82717fff76e5df9c /drivers/irqchip
parent522ccdb6fd0e9689fbdc005ce95a42d70ec81629 (diff)
irqchip: s3c24xx: add missing __init annotations
The s3c24xx_init_intc and s3c2412_init_irq functions are only called at init time, and they call functions already marked __init, so they should be marked in the same way. This was reported as WARNING: vmlinux.o(.text+0x19e0b4): Section mismatch in reference from the function s3c2412_init_irq() to the function .init.text:s3c24xx_init_intc.constprop.8() The function s3c2412_init_irq() references the function __init s3c24xx_init_intc.constprop.8(). This is often because s3c2412_init_irq lacks a __init annotation or the annotation of s3c24xx_init_intc.constprop.8 is wrong. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Heiko Stuebner <heiko@sntech.de> Cc: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'drivers/irqchip')
-rw-r--r--drivers/irqchip/irq-s3c24xx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/irqchip/irq-s3c24xx.c b/drivers/irqchip/irq-s3c24xx.c
index 5e40b3424df8..f750f551fc70 100644
--- a/drivers/irqchip/irq-s3c24xx.c
+++ b/drivers/irqchip/irq-s3c24xx.c
@@ -534,7 +534,7 @@ static void s3c24xx_clear_intc(struct s3c_irq_intc *intc)
534 } 534 }
535} 535}
536 536
537static struct s3c_irq_intc *s3c24xx_init_intc(struct device_node *np, 537static struct s3c_irq_intc * __init s3c24xx_init_intc(struct device_node *np,
538 struct s3c_irq_data *irq_data, 538 struct s3c_irq_data *irq_data,
539 struct s3c_irq_intc *parent, 539 struct s3c_irq_intc *parent,
540 unsigned long address) 540 unsigned long address)
@@ -794,7 +794,7 @@ static struct s3c_irq_data init_s3c2412subint[32] = {
794 { .type = S3C_IRQTYPE_LEVEL, .parent_irq = 21 }, /* CF */ 794 { .type = S3C_IRQTYPE_LEVEL, .parent_irq = 21 }, /* CF */
795}; 795};
796 796
797void s3c2412_init_irq(void) 797void __init s3c2412_init_irq(void)
798{ 798{
799 pr_info("S3C2412: IRQ Support\n"); 799 pr_info("S3C2412: IRQ Support\n");
800 800