|
From: Petr J. <ja...@uc...> - 2002-02-28 13:49:50
|
Hello,
in 2.5.6-pre1 (and probably others) matroxfb doesn't
compile if only CONFIG_FB_MATROX_MYSTIQUE is selected. This #ifdef fixed
it for me:
--- drivers/video/matrox/matroxfb_DAC1064.c.orig Thu Feb 28 12:59:43 2002
+++ drivers/video/matrox/matroxfb_DAC1064.c Thu Feb 28 13:03:21 2002
@@ -473,9 +473,11 @@
static int m1064_compute(void* outdev, struct my_timming* m) {
#define minfo ((struct matrox_fb_info*)outdev)
+#ifdef CONFIG_FB_MATROX_G100
if (ACCESS_FBINFO(devflags.g450dac)) {
matroxfb_g450_setclk(PMINFO m->pixclock, M_PIXEL_PLL_C);
} else {
+#endif
int i;
int tmout;
CRITFLAGS
@@ -496,7 +498,9 @@
if (!tmout)
printk(KERN_ERR "matroxfb: Pixel PLL not locked after 5 secs\n");
+#ifdef CONFIG_FB_MATROX_G100
}
+#endif
#undef minfo
return 0;
}
|