[patch 2.6.25-rc-mm] don't export gpiochip_reserve (section fix)

From: David Brownell
Date: Fri Apr 04 2008 - 22:15:26 EST


Fix section warning:
WARNING: drivers/gpio/built-in.o(__ksymtab_gpl+0xc0): Section mismatch
in reference from the variable __ksymtab_gpiochip_reserve
to the function .init.text:gpiochip_reserve()
The symbol gpiochip_reserve is exported and annotated __init
Fix this by removing the __init annotation of gpiochip_reserve or drop the export.

Signed-off-by: David Brownell <dbrownell@xxxxxxxxxxxxxxxxxxxxx>
---
drivers/gpio/gpiolib.c | 1 -
1 file changed, 1 deletion(-)

--- g26.orig/drivers/gpio/gpiolib.c 2008-03-31 13:05:15.000000000 -0700
+++ g26/drivers/gpio/gpiolib.c 2008-03-31 13:05:29.000000000 -0700
@@ -150,7 +150,6 @@ err:

return ret;
}
-EXPORT_SYMBOL_GPL(gpiochip_reserve);

/**
* gpiochip_add() - register a gpio_chip
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/