spi-gpio-custom: fix section mismatch

This fixes this section mismatch warning:
The function spi_gpio_custom_get_slave_cs() references
the variable __initdata bus_nump.
This is often because spi_gpio_custom_get_slave_cs lacks a __initdata
annotation or the annotation of bus_nump is wrong.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 48930
This commit is contained in:
Hauke Mehrtens 2016-03-05 16:23:19 +00:00
parent 683c046673
commit 837d4f8f41

View File

@ -109,7 +109,7 @@ static void spi_gpio_custom_cleanup(void)
platform_device_unregister(devices[i]);
}
static int spi_gpio_custom_get_slave_mode(unsigned int id,
static int __init spi_gpio_custom_get_slave_mode(unsigned int id,
unsigned int *params,
int slave_index)
{
@ -121,7 +121,7 @@ static int spi_gpio_custom_get_slave_mode(unsigned int id,
return params[param_index];
}
static int spi_gpio_custom_get_slave_maxfreq(unsigned int id,
static int __init spi_gpio_custom_get_slave_maxfreq(unsigned int id,
unsigned int *params,
int slave_index)
{
@ -133,7 +133,7 @@ static int spi_gpio_custom_get_slave_maxfreq(unsigned int id,
return params[param_index];
}
static int spi_gpio_custom_get_slave_cs(unsigned int id,
static int __init spi_gpio_custom_get_slave_cs(unsigned int id,
unsigned int *params,
int slave_index)
{
@ -148,7 +148,7 @@ static int spi_gpio_custom_get_slave_cs(unsigned int id,
return params[param_index];
}
static int spi_gpio_custom_check_params(unsigned int id, unsigned int *params)
static int __init spi_gpio_custom_check_params(unsigned int id, unsigned int *params)
{
int i;
struct spi_master *master;