X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fvideo%2Fskeletonfb.c;h=115440079a3b302ce12ac558f493b744e06c2994;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=75ab6294516f4ac1eb5cac806cda9adf5bd28450;hpb=a2c21200f1c81b08cb55e417b68150bba439b646;p=linux-2.6.git diff --git a/drivers/video/skeletonfb.c b/drivers/video/skeletonfb.c index 75ab62945..115440079 100644 --- a/drivers/video/skeletonfb.c +++ b/drivers/video/skeletonfb.c @@ -582,6 +582,17 @@ int __init xxxfb_init(void) static void __exit xxxfb_cleanup(void) { + /* + * For kernel boot options (in 'video=xxxfb:' 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");