Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi/gpio: fix section mismatch warning

Fixes:
The function __devinit spi_gpio_probe() references
a function __init spi_gpio_alloc.isra.4().
If spi_gpio_alloc.isra.4 is only used by spi_gpio_probe then
annotate spi_gpio_alloc.isra.4 with a matching annotation.

[wsa: fix spi_gpio_request(), too]

Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>

authored by

Manuel Lauss and committed by
Wolfram Sang
c65b53ba d9ddcec3

+2 -2
+2 -2
drivers/spi/spi-gpio.c
··· 256 256 spi_bitbang_cleanup(spi); 257 257 } 258 258 259 - static int __init spi_gpio_alloc(unsigned pin, const char *label, bool is_in) 259 + static int __devinit spi_gpio_alloc(unsigned pin, const char *label, bool is_in) 260 260 { 261 261 int value; 262 262 ··· 270 270 return value; 271 271 } 272 272 273 - static int __init 273 + static int __devinit 274 274 spi_gpio_request(struct spi_gpio_platform_data *pdata, const char *label, 275 275 u16 *res_flags) 276 276 {