Skip to contentSkip to conversation

mb862xxfb: Restrict compliation of platform driver to PPC

PATCH New Anatolij Gustschin 1 participant 1 message May 13, 2009 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mb862xxfb: Restrict compliation of platform driver to PPC

From: Julian Calaby <[email protected]>

The OpenFirmware part of this driver is uncompilable on SPARC due to it's dependance on several PPC specific functions.

Restricting this to PPC to prevent these build errors:
CC drivers/video/mb862xx/mb862xxfb.o
drivers/video/mb862xx/mb862xxfb.c: In function 'of_platform_mb862xx_probe':
drivers/video/mb862xx/mb862xxfb.c:559: error: implicit declaration of function 'of_address_to_resource' drivers/video/mb862xx/mb862xxfb.c:575: error: 'NO_IRQ' undeclared (first use in this function) drivers/video/mb862xx/mb862xxfb.c:575: error: (Each undeclared identifier is reported only once drivers/video/mb862xx/mb862xxfb.c:575: error: for each function it appears in.)

This was found using randconfig builds.

---
 drivers/video/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/video/Kconfig +1 -0
index 0048f11..fe1083f 100644
@@ -2094,6 +2094,7 @@ config FB_MB862XX_LIME
 	bool "Lime GDC"
 	depends on FB_MB862XX
 	depends on OF && !FB_MB862XX_PCI_GDC
+	depends on PPC
 	select FB_FOREIGN_ENDIAN
 	select FB_LITTLE_ENDIAN
 	---help---
Signature · 1 line
1.5.6.3