34 lines
1.3 KiB
Diff
34 lines
1.3 KiB
Diff
From 28f3658954b8a749d9c7109b20f69019dd671252 Mon Sep 17 00:00:00 2001
|
|
From: Hans de Goede <hdegoede@redhat.com>
|
|
Date: Mon, 5 Jan 2015 09:15:16 +0100
|
|
Subject: [PATCH 07/15] simplefb: Fix build failure on Sparc
|
|
Origin: https://git.kernel.org/linus/d9e020197d371c90ad56cc4be388fc95e0c08e6f
|
|
|
|
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: kbuild test robot <fengguang.wu@intel.com>
|
|
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
|
|
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
|
|
---
|
|
drivers/video/fbdev/simplefb.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/video/fbdev/simplefb.c b/drivers/video/fbdev/simplefb.c
|
|
index b2ae925..c90503c 100644
|
|
--- a/drivers/video/fbdev/simplefb.c
|
|
+++ b/drivers/video/fbdev/simplefb.c
|
|
@@ -403,7 +403,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);
|
|
--
|
|
2.1.4
|
|
|