summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-mxc.c
diff options
context:
space:
mode:
authorDirk Behme <dirk.behme@de.bosch.com>2015-08-11 15:51:59 +0300
committerLinus Walleij <linus.walleij@linaro.org>2015-08-13 15:37:04 +0200
commit929550b9f9f870d73489df98318a740183c2e955 (patch)
treea1462656091d2e65addaed402df823e16bbacaef /drivers/gpio/gpio-mxc.c
parent952cfbd38e263ae81fbb4e575fe40d220891d68b (diff)
downloadop-kernel-dev-929550b9f9f870d73489df98318a740183c2e955.zip
op-kernel-dev-929550b9f9f870d73489df98318a740183c2e955.tar.gz
gpio: mxc: fix section mismatch warning
Fix the section mismatch warning WARNING: vmlinux.o(.text+0x2b2788): Section mismatch in reference from the function mxc_gpio_probe() to the function .init.text:mxc_gpio_init_gc() The function mxc_gpio_probe() references the function __init mxc_gpio_init_gc(). This is often because mxc_gpio_probe lacks a __init annotation or the annotation of mxc_gpio_init_gc is wrong. Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com> Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-mxc.c')
-rw-r--r--drivers/gpio/gpio-mxc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c
index efa63fb..b752b56 100644
--- a/drivers/gpio/gpio-mxc.c
+++ b/drivers/gpio/gpio-mxc.c
@@ -339,7 +339,7 @@ static int gpio_set_wake_irq(struct irq_data *d, u32 enable)
return 0;
}
-static void __init mxc_gpio_init_gc(struct mxc_gpio_port *port, int irq_base)
+static void mxc_gpio_init_gc(struct mxc_gpio_port *port, int irq_base)
{
struct irq_chip_generic *gc;
struct irq_chip_type *ct;
OpenPOWER on IntegriCloud