X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fvideo%2Fpvr2fb.c;h=a6ecf9674f406f73623e0ca59600fec8567fe1a3;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=5f63f10af805ca2580de9f1070ec5a62764237bc;hpb=a2c21200f1c81b08cb55e417b68150bba439b646;p=linux-2.6.git diff --git a/drivers/video/pvr2fb.c b/drivers/video/pvr2fb.c index 5f63f10af..a6ecf9674 100644 --- a/drivers/video/pvr2fb.c +++ b/drivers/video/pvr2fb.c @@ -795,7 +795,7 @@ static int __init pvr2fb_common_init(void) fb_info->fix = pvr2_fix; fb_info->par = currentpar; fb_info->pseudo_palette = (void *)(fb_info->par + 1); - fb_info->flags = FBINFO_FLAG_DEFAULT; + fb_info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN; if (video_output == VO_VGA) defmode = DEFMODE_VGA; @@ -1057,6 +1057,13 @@ int __init pvr2fb_init(void) int i, ret = -ENODEV; int size; +#ifndef MODULE + char *option = NULL; + + if (fb_get_options("pvr2fb", &option)) + return -ENODEV; + pvr2fb_setup(option); +#endif size = sizeof(struct fb_info) + sizeof(struct pvr2fb_par) + 16 * sizeof(u32); fb_info = kmalloc(size, GFP_KERNEL); @@ -1108,9 +1115,7 @@ static void __exit pvr2fb_exit(void) kfree(fb_info); } -#ifdef MODULE module_init(pvr2fb_init); -#endif module_exit(pvr2fb_exit); MODULE_AUTHOR("Paul Mundt , M. R. Brown ");