vserver 1.9.3
[linux-2.6.git] / drivers / video / skeletonfb.c
index 75ab629..1154400 100644 (file)
@@ -582,6 +582,17 @@ int __init xxxfb_init(void)
 
 static void __exit xxxfb_cleanup(void)
 {
+    /*
+     *  For kernel boot options (in 'video=xxxfb:<options>' format)
+     */
+#ifndef MODULE
+    char *option = NULL;
+
+    if (fb_get_options("xxxfb", &option))
+           return -ENODEV;
+    xxxfb_setup(option);
+#endif
+
     /*
      *  If your driver supports multiple boards, you should unregister and
      *  clean up all instances.
@@ -639,9 +650,7 @@ static struct fb_ops xxxfb_ops = {
      *  Modularization
      */
 
-#ifdef MODULE
 module_init(xxxfb_init);
-#endif 
 module_exit(xxxfb_cleanup);
 
 MODULE_LICENSE("GPL");