[PATCH] add removed option "mode" to keep compatibility

DORMANTno replies

From: Krzysztof Helt <hidden>
Date: 2008-02-18 22:35:54

From: Krzysztof Helt <redacted>

This patch adds removed option "mode" to keep
compatibility with existing setups.
The option is back for pm2fb, tridentfb and vt8623fb drivers.

Signed-off-by: Krzysztof Helt <redacted>
---

This patch is against 2.6.25-rc2-mm1 tree.

diff -urp linux-mm-ref/drivers/video/pm2fb.c linux-mm/drivers/video/pm2fb.c
--- linux-mm-ref/drivers/video/pm2fb.c	2008-02-18 21:12:29.000000000 +0100
+++ linux-mm/drivers/video/pm2fb.c	2008-02-18 21:19:25.908465257 +0100
@@ -1835,6 +1835,8 @@ module_exit(pm2fb_exit);
 
 module_param(mode_option, charp, 0);
 MODULE_PARM_DESC(mode_option, "Initial video mode e.g. '648x480-8@60'");
+module_param_named(mode, mode_option, charp, 0);
+MODULE_PARM_DESC(mode, "Initial video mode e.g. '648x480-8@60' (deprecated)");
 module_param(lowhsync, bool, 0);
 MODULE_PARM_DESC(lowhsync, "Force horizontal sync low regardless of mode");
 module_param(lowvsync, bool, 0);
diff -urp linux-mm-ref/drivers/video/tridentfb.c linux-mm/drivers/video/tridentfb.c
--- linux-mm-ref/drivers/video/tridentfb.c	2008-02-18 21:12:29.000000000 +0100
+++ linux-mm/drivers/video/tridentfb.c	2008-02-18 21:21:39.691805349 +0100
@@ -75,6 +75,8 @@ static int nativex;
 
 module_param(mode_option, charp, 0);
 MODULE_PARM_DESC(mode_option, "Initial video mode e.g. '648x480-8@60'");
+module_param_named(mode, mode_option, charp, 0);
+MODULE_PARM_DESC(mode, "Initial video mode e.g. '648x480-8@60' (deprecated)");
 module_param(bpp, int, 0);
 module_param(center, int, 0);
 module_param(stretch, int, 0);
diff -urp linux-mm-ref/drivers/video/vt8623fb.c linux-mm/drivers/video/vt8623fb.c
--- linux-mm-ref/drivers/video/vt8623fb.c	2008-02-18 21:12:29.000000000 +0100
+++ linux-mm/drivers/video/vt8623fb.c	2008-02-18 21:22:09.162303810 +0100
@@ -112,6 +112,8 @@ MODULE_DESCRIPTION("fbdev driver for int
 
 module_param(mode_option, charp, 0644);
 MODULE_PARM_DESC(mode_option, "Default video mode ('640x480-8@60', etc)");
+module_param_named(mode, mode_option, charp, 0);
+MODULE_PARM_DESC(mode, "Default video mode e.g. '648x480-8@60' (deprecated)");
 
 #ifdef CONFIG_MTRR
 module_param(mtrr, int, 0444);


---------------------------------------------------------------------- 	
Sprawdz gdzie lezy snieg, czy dzialaja armatki
i jak przygotowane sa stoki >>> http://link.interia.pl/f1cfc



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help