mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
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
1 changed files with 1 additions and 2 deletions
|
@ -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 a new issue