X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fvideo%2Fleo.c;h=99fb72aa184d67b02dcf31aae13974f9bdd3cc3d;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=7547e893659087ae88390378f8189abc94e194d1;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/drivers/video/leo.c b/drivers/video/leo.c index 7547e8936..99fb72aa1 100644 --- a/drivers/video/leo.c +++ b/drivers/video/leo.c @@ -588,7 +588,7 @@ static void leo_init_one(struct sbus_dev *sdev) sbus_ioremap(&sdev->resource[0], LEO_OFF_LX_CURSOR, sizeof(struct leo_cursor), "leolx cursor"); - all->info.flags = FBINFO_FLAG_DEFAULT; + all->info.flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN; all->info.fbops = &leo_ops; all->info.currcon = -1; all->info.par = &all->par; @@ -626,6 +626,9 @@ int __init leo_init(void) struct sbus_bus *sbus; struct sbus_dev *sdev; + if (fb_get_options("leofb", NULL)) + return -ENODEV; + for_all_sbusdev(sdev, sbus) { if (!strcmp(sdev->prom_name, "leo")) leo_init_one(sdev); @@ -654,8 +657,8 @@ leo_setup(char *arg) return 0; } -#ifdef MODULE module_init(leo_init); +#ifdef MODULE module_exit(leo_exit); #endif