X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fvideo%2Fvesafb.c;h=15f7f8e47614167497837ad83f2b766f8f8a79d3;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=b8cb975083f06718fd7330748beff4099f6c3e7c;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/drivers/video/vesafb.c b/drivers/video/vesafb.c index b8cb97508..15f7f8e47 100644 --- a/drivers/video/vesafb.c +++ b/drivers/video/vesafb.c @@ -52,7 +52,7 @@ static int mtrr = 1; static int vram __initdata = 0; /* Set amount of memory to be used */ static int pmi_setpal = 0; /* pmi for palette changes ??? */ static int ypan = 0; /* 0..nothing, 1..ypan, 2..ywrap */ -static unsigned short *pmi_base = 0; +static unsigned short *pmi_base = NULL; static void (*pmi_start)(void); static void (*pmi_pal)(void); @@ -378,7 +378,8 @@ static int __init vesafb_probe(struct device *device) info->fbops = &vesafb_ops; info->var = vesafb_defined; info->fix = vesafb_fix; - info->flags = FBINFO_FLAG_DEFAULT; + info->flags = FBINFO_FLAG_DEFAULT | + (ypan) ? FBINFO_HWACCEL_YPAN : 0; if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { err = -ENXIO;