提交 d9e02019 编写于 作者: H Hans de Goede 提交者: Tomi Valkeinen

simplefb: Fix build failure on Sparc

of_platform_device_create is only defined when CONFIG_OF_ADDRESS is set,
which is normally always the case when CONFIG_OF is defined, except on Sparc,
so explicitly check for CONFIG_OF_ADDRESS rather then for CONFIG_OF.
Reported-by: Nkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: NHans de Goede <hdegoede@redhat.com>
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
上级 eaa27f34
......@@ -402,7 +402,7 @@ static int __init simplefb_init(void)
if (ret)
return ret;
if (IS_ENABLED(CONFIG_OF) && of_chosen) {
if (IS_ENABLED(CONFIG_OF_ADDRESS) && of_chosen) {
for_each_child_of_node(of_chosen, np) {
if (of_device_is_compatible(np, "simple-framebuffer"))
of_platform_device_create(np, NULL, NULL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册