Commit c65b53ba4f9ca4520078bab23099579da3bf0446

Authored by Manuel Lauss
Committed by Wolfram Sang
1 parent d9ddcec35d

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>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

drivers/spi/spi-gpio.c
... ... @@ -256,7 +256,7 @@
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,7 +270,7 @@
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 {