# \[PATCH 5/11\] i810fb: Module param fix

- From: Antonino A. Daplas \<hidden\>
- Date: 2005-01-13 21:46:57 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2005/01/13454211
- Thread: https://ratatoskr.run/linux-fbdev/2005/01/13454211/t.md

```text
  Last parameter is file permition in sysfs, not default value.
  (If 0, file is not accessible trough sysfs, and that's what i did.)


Signed-off-by: Domen Puncer <redacted>
Signed-off-by: Antonino Daplas <redacted>
---

 i810_main.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff -Nru a/drivers/video/i810/i810_main.c b/drivers/video/i810/i810_main.c
--- a/drivers/video/i810/i810_main.c	2005-01-12 06:10:17 +08:00
+++ b/drivers/video/i810/i810_main.c	2004-12-29 17:43:05 +08:00
@@ -2003,20 +2003,20 @@
 	return pci_register_driver(&i810fb_driver);
 }
 
-module_param(vram, int, 4);
+module_param(vram, int, 0);
 MODULE_PARM_DESC(vram, "System RAM to allocate to framebuffer in MiB" 
 		 " (default=4)");
 module_param(voffset, int, 0);
 MODULE_PARM_DESC(voffset, "at what offset to place start of framebuffer "
                  "memory (0 to maximum aperture size), in MiB (default = 48)");
-module_param(bpp, int, 8);
+module_param(bpp, int, 0);
 MODULE_PARM_DESC(bpp, "Color depth for display in bits per pixel"
 		 " (default = 8)");
-module_param(xres, int, 640);
+module_param(xres, int, 0);
 MODULE_PARM_DESC(xres, "Horizontal resolution in pixels (default = 640)");
-module_param(yres, int, 480);
+module_param(yres, int, 0);
 MODULE_PARM_DESC(yres, "Vertical resolution in scanlines (default = 480)");
-module_param(vyres,int, 480);
+module_param(vyres,int, 0);
 MODULE_PARM_DESC(vyres, "Virtual vertical resolution in scanlines"
 		 " (default = 480)");
 module_param(hsync1, int, 0);




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
```
