]> git.hungrycats.org Git - linux/commitdiff
[PATCH] matroxfb compile fix
authorPetr Vandrovec <vandrove@vc.cvut.cz>
Thu, 7 Mar 2002 09:00:08 +0000 (01:00 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Thu, 7 Mar 2002 09:00:08 +0000 (01:00 -0800)
* Make matroxfb compilable with Mystique, but without G450 support.

Petr Vandrovec

drivers/video/matrox/matroxfb_DAC1064.c

index ad5dfb1a10740e7f4bef5a02800d756ec795956b..51aad5adb8195a588ea029fa7fd5cef59bca33df 100644 (file)
@@ -473,9 +473,12 @@ static void DAC1064_restore_2(WPMINFO struct display* p) {
 
 static int m1064_compute(void* outdev, struct my_timming* m) {
 #define minfo ((struct matrox_fb_info*)outdev)
+#ifdef CONFIG_FB_MATROX_G450
        if (ACCESS_FBINFO(devflags.g450dac)) {
                matroxfb_g450_setclk(PMINFO m->pixclock, M_PIXEL_PLL_C);
-       } else {
+       } else 
+#endif
+       {
                int i;
                int tmout;
                CRITFLAGS