Commit 149a6501 authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds

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: default avatarAdrian Bunk <bunk@stusta.de>
Acked-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 8b6f50ef
...@@ -303,8 +303,7 @@ spi_register_board_info(struct spi_board_info const *info, unsigned n) ...@@ -303,8 +303,7 @@ spi_register_board_info(struct spi_board_info const *info, unsigned n)
* creates board info from kernel command lines * creates board info from kernel command lines
*/ */
static void __init_or_module static void scan_boardinfo(struct spi_master *master)
scan_boardinfo(struct spi_master *master)
{ {
struct boardinfo *bi; struct boardinfo *bi;
struct device *dev = master->cdev.dev; struct device *dev = master->cdev.dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment