diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2016-03-05 16:23:19 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2016-03-05 16:23:19 +0000 |
commit | 707630c3ad443626b9d2e8a59295bb5c7d834d3a (patch) | |
tree | c9d45c16173294093c9927635dca2a27ca2fb4fc /package | |
parent | 6f20d7c86970d548cd6ed0e130bf1349a68ee866 (diff) | |
download | master-187ad058-707630c3ad443626b9d2e8a59295bb5c7d834d3a.tar.gz master-187ad058-707630c3ad443626b9d2e8a59295bb5c7d834d3a.tar.bz2 master-187ad058-707630c3ad443626b9d2e8a59295bb5c7d834d3a.zip |
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48930 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r-- | package/kernel/spi-gpio-custom/src/spi-gpio-custom.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/package/kernel/spi-gpio-custom/src/spi-gpio-custom.c b/package/kernel/spi-gpio-custom/src/spi-gpio-custom.c index a4f93c67c2..4c13b56d79 100644 --- a/package/kernel/spi-gpio-custom/src/spi-gpio-custom.c +++ b/package/kernel/spi-gpio-custom/src/spi-gpio-custom.c @@ -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; |