Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 94155
b: refs/heads/master
c: 5eb81e8
h: refs/heads/master
i:
  94153: 9cc06f4
  94151: 7870dbb
v: v3
  • Loading branch information
Krzysztof Helt authored and Linus Torvalds committed Apr 28, 2008
1 parent 3ddbdb6 commit 8b06313
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 21b4d1db84a70175251d86078123cc27e46ff69d
refs/heads/master: 5eb81e808de6f49af1dd74db68876a79da1314a5
14 changes: 7 additions & 7 deletions trunk/drivers/video/pm2fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
* Driver data
*/
static int hwcursor = 1;
static char *mode __devinitdata;
static char *mode_option __devinitdata;

/*
* The XFree GLINT driver will (I think to implement hardware cursor
Expand Down Expand Up @@ -1680,10 +1680,10 @@ static int __devinit pm2fb_probe(struct pci_dev *pdev,
info->pixmap.scan_align = 1;
}

if (!mode)
mode = "640x480@60";
if (!mode_option)
mode_option = "640x480@60";

err = fb_find_mode(&info->var, info, mode, NULL, 0, NULL, 8);
err = fb_find_mode(&info->var, info, mode_option, NULL, 0, NULL, 8);
if (!err || err == 4)
info->var = pm2fb_var;

Expand Down Expand Up @@ -1799,7 +1799,7 @@ static int __init pm2fb_setup(char *options)
else if (!strncmp(this_opt, "noaccel", 7))
noaccel = 1;
else
mode = this_opt;
mode_option = this_opt;
}
return 0;
}
Expand Down Expand Up @@ -1835,8 +1835,8 @@ static void __exit pm2fb_exit(void)
#ifdef MODULE
module_exit(pm2fb_exit);

module_param(mode, charp, 0);
MODULE_PARM_DESC(mode, "Preferred video mode e.g. '648x480-8@60'");
module_param(mode_option, charp, 0);
MODULE_PARM_DESC(mode_option, "Initial video mode e.g. '648x480-8@60'");
module_param(lowhsync, bool, 0);
MODULE_PARM_DESC(lowhsync, "Force horizontal sync low regardless of mode");
module_param(lowvsync, bool, 0);
Expand Down

0 comments on commit 8b06313

Please sign in to comment.