X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fvideo%2Fg364fb.c;h=1b981b6356757a7cf9b26ea5f179ddeb6febf559;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=a869bf147f7409f61349792a638ab5f729fede9c;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/drivers/video/g364fb.c b/drivers/video/g364fb.c index a869bf147..1b981b635 100644 --- a/drivers/video/g364fb.c +++ b/drivers/video/g364fb.c @@ -15,12 +15,12 @@ */ #include +#include #include #include #include #include #include -#include #include #include #include @@ -202,6 +202,9 @@ int __init g364fb_init(void) (volatile unsigned int *) CURS_PAL_REG; int mem, i, j; + if (fb_get_options("g364fb", NULL)) + return -ENODEV; + /* TBD: G364 detection */ /* get the resolution set by ARC console */ @@ -241,7 +244,7 @@ int __init g364fb_init(void) fb_info.screen_base = (char *) G364_MEM_BASE; /* virtual kernel address */ fb_info.var = fb_var; fb_info.fix = fb_fix; - fb_info.flags = FBINFO_FLAG_DEFAULT; + fb_info.flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN; fb_alloc_cmap(&fb_info.cmap, 255, 0); @@ -250,4 +253,5 @@ int __init g364fb_init(void) return 0; } +module_init(g364fb_init); MODULE_LICENSE("GPL");