From 9e3f0ca812ab8fa3f4e65ade41bf6fb936f14e15 Mon Sep 17 00:00:00 2001 From: Krzysztof Helt Date: Mon, 28 Apr 2008 02:15:10 -0700 Subject: [PATCH] fbdev: add removed option "mode" to keep compatibility Add removed option "mode" to keep compatibility with existing setups. The option is back for pm2fb, tridentfb and vt8623fb drivers. Signed-off-by: Krzysztof Helt Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- drivers/video/pm2fb.c | 2 ++ drivers/video/tridentfb.c | 2 ++ drivers/video/vt8623fb.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/drivers/video/pm2fb.c b/drivers/video/pm2fb.c index a52c61a0ce52..540249f741c3 100644 --- a/drivers/video/pm2fb.c +++ b/drivers/video/pm2fb.c @@ -1837,6 +1837,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 --git a/drivers/video/tridentfb.c b/drivers/video/tridentfb.c index 46669c669586..bd54cd0de39a 100644 --- a/drivers/video/tridentfb.c +++ b/drivers/video/tridentfb.c @@ -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 --git a/drivers/video/vt8623fb.c b/drivers/video/vt8623fb.c index 66305b604ba8..f6895ef6bf59 100644 --- a/drivers/video/vt8623fb.c +++ b/drivers/video/vt8623fb.c @@ -112,6 +112,8 @@ MODULE_DESCRIPTION("fbdev driver for integrated graphics core in VIA VT8623 [CLE 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); -- 2.30.2