<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
From: Jim Hague &lt;jim.hague@acm.org&gt;

- modedb is now available in modules.

Signed-off-by: Jim Hague &lt;jim.hague@acm.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
---

 25-akpm/drivers/video/pm2fb.c |    5 +----
 1 files changed, 1 insertion(+), 4 deletions(-)

diff -puN drivers/video/pm2fb.c~pm2fb-use-modedb-in-modules drivers/video/pm2fb.c
--- 25/drivers/video/pm2fb.c~pm2fb-use-modedb-in-modules	Thu Dec  9 13:56:03 2004
+++ 25-akpm/drivers/video/pm2fb.c	Thu Dec  9 13:56:03 2004
@@ -112,8 +112,7 @@ static struct fb_fix_screeninfo pm2fb_fi
 };
 
 /*
- * Default video mode. In case the modedb doesn't work, or we're
- * a module (in which case modedb doesn't really work).
+ * Default video mode. In case the modedb doesn't work.
  */
 static struct fb_var_screeninfo pm2fb_var __initdata = {
 	/* "640x480, 8 bpp @ 60 Hz */
@@ -1153,13 +1152,11 @@ static int __devinit pm2fb_probe(struct 
 	info-&gt;flags		= FBINFO_DEFAULT |
                                   FBINFO_HWACCEL_YPAN;
 
-#ifndef MODULE
 	if (!mode)
 		mode = "640x480@60";
 	 
 	err = fb_find_mode(&amp;info-&gt;var, info, mode, NULL, 0, NULL, 8); 
 	if (!err || err == 4)
-#endif
 		info-&gt;var = pm2fb_var;
 
 	if (fb_alloc_cmap(&amp;info-&gt;cmap, 256, 0) &lt; 0)
_
</pre></body></html>