mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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]>
This commit is contained in:
parent
d9ddcec35d
commit
c65b53ba4f
1 changed files with 2 additions and 2 deletions
|
|
@ -256,7 +256,7 @@ static void spi_gpio_cleanup(struct spi_device *spi)
|
|||
spi_bitbang_cleanup(spi);
|
||||
}
|
||||
|
||||
static int __init spi_gpio_alloc(unsigned pin, const char *label, bool is_in)
|
||||
static int __devinit spi_gpio_alloc(unsigned pin, const char *label, bool is_in)
|
||||
{
|
||||
int value;
|
||||
|
||||
|
|
@ -270,7 +270,7 @@ static int __init spi_gpio_alloc(unsigned pin, const char *label, bool is_in)
|
|||
return value;
|
||||
}
|
||||
|
||||
static int __init
|
||||
static int __devinit
|
||||
spi_gpio_request(struct spi_gpio_platform_data *pdata, const char *label,
|
||||
u16 *res_flags)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue