spi.c:scan_boardinfo() mustn't be __init_or_module
WARNING: drivers/built-in.o(.text+0x889735): Section mismatch: reference to .init.text:scan_boardinfo (between 'spi_register_master' and '__unregister') Signed-off-by: Adrian Bunk <bunk@stusta.de> Acked-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
8b6f50ef1d
commit
149a6501f9
|
@ -303,8 +303,7 @@ spi_register_board_info(struct spi_board_info const *info, unsigned n)
|
|||
* creates board info from kernel command lines
|
||||
*/
|
||||
|
||||
static void __init_or_module
|
||||
scan_boardinfo(struct spi_master *master)
|
||||
static void scan_boardinfo(struct spi_master *master)
|
||||
{
|
||||
struct boardinfo *bi;
|
||||
struct device *dev = master->cdev.dev;
|
||||
|
|
Loading…
Reference in New Issue