]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] fix rivafb build on ppc64
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 11 Feb 2004 13:53:47 +0000 (05:53 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 11 Feb 2004 13:53:47 +0000 (05:53 -0800)
rivafb is part of the g5 defconfig, but will cause a build error
on ppc64 due to a missing #include, here is the fix.

drivers/video/riva/fbdev.c

index fc49bb6c25f35d2b8cd529812d0fe7caa95d46f3..172664f06df5b9bdca22db070621d2f76787b350 100644 (file)
 #ifdef CONFIG_MTRR
 #include <asm/mtrr.h>
 #endif
+#ifdef CONFIG_PPC_OF
+#include <asm/prom.h>
+#include <asm/pci-bridge.h>
+#endif
 
 #include "rivafb.h"
 #include "nvreg.h"