info->pseudo_palette = info->par;
info->par = NULL;
info->fix = fb_fix;
- info->flags = FBINFO_FLAG_DEFAULT;
+ info->flags = FBINFO_DEFAULT;
if (register_framebuffer(info) < 0) {
fb_dealloc_cmap(&info->cmap);
return 0;
}
+int __init fm2fb_setup(char *options);
+
int __init fm2fb_init(void)
{
+ char *option = NULL;
+
+ if (fb_get_options("fm2fb", &option))
+ return -ENODEV;
+ fm2fb_setup(option);
return zorro_register_driver(&fm2fb_driver);
}
-int __init fm2fb_setup(char *options)
{
char *this_opt;
return 0;
}
+module_init(fm2fb_init);
MODULE_LICENSE("GPL");