X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fvideo%2Fpm2fb.c;h=92f539a6564abb6159d1a3fa8abbdbc6d47e6d1d;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=61953c1e182f1b7f37d6b136e6abd1ad5bfc3112;hpb=a2c21200f1c81b08cb55e417b68150bba439b646;p=linux-2.6.git diff --git a/drivers/video/pm2fb.c b/drivers/video/pm2fb.c index 61953c1e1..92f539a65 100644 --- a/drivers/video/pm2fb.c +++ b/drivers/video/pm2fb.c @@ -1124,7 +1124,8 @@ static int __devinit pm2fb_probe(struct pci_dev *pdev, info->fbops = &pm2fb_ops; info->fix = pm2fb_fix; info->pseudo_palette = (void *)(default_par + 1); - info->flags = FBINFO_FLAG_DEFAULT; + info->flags = FBINFO_DEFAULT | + FBINFO_HWACCEL_YPAN; #ifndef MODULE if (!mode) @@ -1214,8 +1215,18 @@ MODULE_DEVICE_TABLE(pci, pm2fb_id_table); * Initialization */ +int __init pm2fb_setup(char *options); + int __init pm2fb_init(void) { +#ifndef MODULE + char *option = NULL; + + if (fb_get_options("pm2fb", &option)) + return -ENODEV; + pm2fb_setup(option); +#endif + return pci_module_init(&pm2fb_driver); } @@ -1265,9 +1276,7 @@ int __init pm2fb_setup(char *options) -#ifdef MODULE module_init(pm2fb_init); -#endif module_exit(pm2fb_exit); MODULE_PARM(mode,"s");