All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] simplefb: Fix build failure on Sparc
@ 2015-01-05  8:15 ` Hans de Goede
  0 siblings, 0 replies; 12+ messages in thread
From: Hans de Goede @ 2015-01-05  8:15 UTC (permalink / raw)
  To: linux-arm-kernel

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>
---
 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 92cac80..1085c04 100644
--- a/drivers/video/fbdev/simplefb.c
+++ b/drivers/video/fbdev/simplefb.c
@@ -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);
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-01-05 12:13 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-05  8:15 [PATCH] simplefb: Fix build failure on Sparc Hans de Goede
2015-01-05  8:15 ` Hans de Goede
2015-01-05  8:15 ` Hans de Goede
2015-01-05 11:17 ` Tomi Valkeinen
2015-01-05 11:17   ` Tomi Valkeinen
2015-01-05 11:17   ` Tomi Valkeinen
2015-01-05 11:21   ` Hans de Goede
2015-01-05 11:21     ` Hans de Goede
2015-01-05 11:21     ` Hans de Goede
2015-01-05 12:13     ` Tomi Valkeinen
2015-01-05 12:13       ` Tomi Valkeinen
2015-01-05 12:13       ` Tomi Valkeinen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.