[PATCH] Fix vesafb display panning regression
Fix vesafb hang when scroll mode is REDRAW. Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
f845fbac4e
commit
e53f87a02a
@@ -417,6 +417,9 @@ static int __init vesafb_probe(struct platform_device *dev)
|
|||||||
info->flags = FBINFO_FLAG_DEFAULT |
|
info->flags = FBINFO_FLAG_DEFAULT |
|
||||||
(ypan) ? FBINFO_HWACCEL_YPAN : 0;
|
(ypan) ? FBINFO_HWACCEL_YPAN : 0;
|
||||||
|
|
||||||
|
if (!ypan)
|
||||||
|
info->fbops->fb_pan_display = NULL;
|
||||||
|
|
||||||
if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) {
|
if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) {
|
||||||
err = -ENOMEM;
|
err = -ENOMEM;
|
||||||
goto err;
|
goto err;
|
||||||
|
Reference in New Issue
Block a user