]> git.hungrycats.org Git - linux/commitdiff
ppc64: Don't build offb's code that relies on the BootX bootloader on ppc64
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 13 Feb 2004 02:52:47 +0000 (13:52 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 13 Feb 2004 02:52:47 +0000 (13:52 +1100)
drivers/video/offb.c

index 5c1af5f6cc6f4c379a774e03c6934d95d5d2da8f..e1715ef972b82d281b44b99a8d39634c2f2a11ef 100644 (file)
@@ -247,7 +247,7 @@ int __init offb_init(void)
 {
        struct device_node *dp;
        unsigned int dpy;
-#ifdef CONFIG_BOOTX_TEXT
+#if defined(CONFIG_BOOTX_TEXT) && defined(CONFIG_PPC32)
        struct device_node *displays = find_type_devices("display");
        struct device_node *macos_display = NULL;
 
@@ -323,7 +323,7 @@ int __init offb_init(void)
                             boot_infos->dispDeviceDepth,
                             boot_infos->dispDeviceRowBytes, addr, NULL);
        }
-#endif
+#endif /* defined(CONFIG_BOOTX_TEXT) && defined(CONFIG_PPC32) */
 
        for (dpy = 0; dpy < prom_num_displays; dpy++) {
                if ((dp = find_path_device(prom_display_paths[dpy])))