Skip to contentSkip to conversation

fbdev: Fix module_param in rivafb

PATCH New Antonino A. Daplas 1 participant 1 message Nov 21, 2004 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 4/4 fbdev: Fix module_param in rivafb

third argument in module_param is the sysfs permission not a default value. This fixes things for rivafb in 2.6.10-rc2:

---

 fbdev.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/video/riva/fbdev.c +2 -2
diff -Nru a/drivers/video/riva/fbdev.c b/drivers/video/riva/fbdev.c
@@ -2210,9 +2210,9 @@
 
 module_param(noaccel, bool, 0);
 MODULE_PARM_DESC(noaccel, "bool: disable acceleration");
-module_param(flatpanel, int, -1);
+module_param(flatpanel, int, 0);
 MODULE_PARM_DESC(flatpanel, "Enables experimental flat panel support for some chipsets. (0 or 1=enabled) (default=0)");
-module_param(forceCRTC, int, -1);
+module_param(forceCRTC, int, 0);
 MODULE_PARM_DESC(forceCRTC, "Forces usage of a particular CRTC in case autodetection fails. (0 or 1) (default=autodetect)");
 #ifdef CONFIG_MTRR
 module_param(nomtrr, bool, 0);

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/