Skip to content

Commit c65b53b

Browse files
Manuel LaussWolfram Sang
authored andcommitted
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 <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent d9ddcec commit c65b53b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/spi/spi-gpio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ static void spi_gpio_cleanup(struct spi_device *spi)
256256
spi_bitbang_cleanup(spi);
257257
}
258258

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)
260260
{
261261
int value;
262262

@@ -270,7 +270,7 @@ static int __init spi_gpio_alloc(unsigned pin, const char *label, bool is_in)
270270
return value;
271271
}
272272

273-
static int __init
273+
static int __devinit
274274
spi_gpio_request(struct spi_gpio_platform_data *pdata, const char *label,
275275
u16 *res_flags)
276276
{

0 commit comments

Comments
 (0)