[PATCH] fix rivafb build on ppc64

From: Benjamin Herrenschmidt
Date: Thu Feb 12 2004 - 00:47:30 EST


Hi Linus, Andrew !

rivafb is part of the g5 defconfig, but will cause a build error
on ppc64 due to a missing #include, here is a fix, please apply:

===== drivers/video/riva/fbdev.c 1.51 vs edited =====
--- 1.51/drivers/video/riva/fbdev.c Wed Feb 4 16:29:30 2004
+++ edited/drivers/video/riva/fbdev.c Thu Feb 12 16:39:59 2004
@@ -44,6 +44,10 @@
#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"


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/