diff options
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/geode/lxfb_core.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/video/geode/lxfb_core.c b/drivers/video/geode/lxfb_core.c index b565882eee37..1da944bdb11a 100644 --- a/drivers/video/geode/lxfb_core.c +++ b/drivers/video/geode/lxfb_core.c | |||
@@ -27,7 +27,7 @@ | |||
27 | 27 | ||
28 | static char *mode_option; | 28 | static char *mode_option; |
29 | static int noclear, nopanel, nocrt; | 29 | static int noclear, nopanel, nocrt; |
30 | static int fbsize; | 30 | static int vram; |
31 | 31 | ||
32 | /* Most of these modes are sorted in ascending order, but | 32 | /* Most of these modes are sorted in ascending order, but |
33 | * since the first entry in this table is the "default" mode, | 33 | * since the first entry in this table is the "default" mode, |
@@ -339,7 +339,7 @@ static int __init lxfb_map_video_memory(struct fb_info *info, | |||
339 | return ret; | 339 | return ret; |
340 | 340 | ||
341 | info->fix.smem_start = pci_resource_start(dev, 0); | 341 | info->fix.smem_start = pci_resource_start(dev, 0); |
342 | info->fix.smem_len = fbsize ? fbsize : lx_framebuffer_size(); | 342 | info->fix.smem_len = vram ? vram : lx_framebuffer_size(); |
343 | 343 | ||
344 | info->screen_base = ioremap(info->fix.smem_start, info->fix.smem_len); | 344 | info->screen_base = ioremap(info->fix.smem_start, info->fix.smem_len); |
345 | 345 | ||
@@ -608,9 +608,7 @@ static int __init lxfb_setup(char *options) | |||
608 | if (!*opt) | 608 | if (!*opt) |
609 | continue; | 609 | continue; |
610 | 610 | ||
611 | if (!strncmp(opt, "fbsize:", 7)) | 611 | if (!strcmp(opt, "noclear")) |
612 | fbsize = simple_strtoul(opt+7, NULL, 0); | ||
613 | else if (!strcmp(opt, "noclear")) | ||
614 | noclear = 1; | 612 | noclear = 1; |
615 | else if (!strcmp(opt, "nopanel")) | 613 | else if (!strcmp(opt, "nopanel")) |
616 | nopanel = 1; | 614 | nopanel = 1; |
@@ -647,8 +645,8 @@ module_exit(lxfb_cleanup); | |||
647 | module_param(mode_option, charp, 0); | 645 | module_param(mode_option, charp, 0); |
648 | MODULE_PARM_DESC(mode_option, "video mode (<x>x<y>[-<bpp>][@<refr>])"); | 646 | MODULE_PARM_DESC(mode_option, "video mode (<x>x<y>[-<bpp>][@<refr>])"); |
649 | 647 | ||
650 | module_param(fbsize, int, 0); | 648 | module_param(vram, int, 0); |
651 | MODULE_PARM_DESC(fbsize, "video memory size"); | 649 | MODULE_PARM_DESC(vram, "video memory size"); |
652 | 650 | ||
653 | MODULE_DESCRIPTION("Framebuffer driver for the AMD Geode LX"); | 651 | MODULE_DESCRIPTION("Framebuffer driver for the AMD Geode LX"); |
654 | MODULE_LICENSE("GPL"); | 652 | MODULE_LICENSE("GPL"); |