]> git.baikalelectronics.ru Git - kernel.git/commit
of: drop symbols declared by _OF_DECLARE() from modules
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 21 Jan 2016 16:33:51 +0000 (01:33 +0900)
committerRob Herring <robh@kernel.org>
Mon, 25 Jan 2016 14:35:50 +0000 (08:35 -0600)
commit7e51943feb7bc959661ea65113cfa25c2d42557a
tree0236635f253212ab56274667b1012f42a5f4095a
parenta8734ed8aab432fc12e070b195e88c23284e11e2
of: drop symbols declared by _OF_DECLARE() from modules

The users of this macro (OF_EARLYCON_DECLARE, CLK_OF_DECLARE,
IRQCHIP_DECLARE, etc.) are only parsed in the early boot stage.
Such symbols contained in modules are never used.

This commit fixes the link error introduced by commit 720613391c73
("serial: 8250_uniphier: add earlycon support"); the combination
of CONFIG_SERIAL_8250_UNIPHIER=m and CONFIG_SERIAL_8250_CONSOLE=y
fails to link:

ERROR: "early_serial8250_setup" [drivers/tty/serial/8250/8250_uniphier.ko] undefined!

Fixes: 720613391c73 ("serial: 8250_uniphier: add earlycon support")
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Rob Herring <robh@kernel.org>
include/linux/of.h