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.
* Modularization
*/
-#ifdef MODULE
module_init(xxxfb_init);
-#endif
module_exit(xxxfb_cleanup);
MODULE_LICENSE("GPL");