aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/softcursor.c
diff options
context:
space:
mode:
authorJames Simmons <jsimmons@pentafluge.infradead.org>2005-06-21 20:17:07 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-21 22:07:41 -0400
commitf1ab5dac251bb4514607918b0019a3b3f5f5fb48 (patch)
tree65d7912b1d407b1dc12b9e2f67b4311a153a41e5 /drivers/video/softcursor.c
parent303b86d9913eca0cbfc3c5cb41e7006f6e13b755 (diff)
[PATCH] fbdev: stack reduction
Shrink the stack when calling the drawing alignment functions. Signed-off-by: James Simmons <jsimmons@www.infradead.org> Cc: "Antonino A. Daplas" <adaplas@hotpop.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video/softcursor.c')
-rw-r--r--drivers/video/softcursor.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/video/softcursor.c b/drivers/video/softcursor.c
index a6c5ca88d6b0..229c4bc35079 100644
--- a/drivers/video/softcursor.c
+++ b/drivers/video/softcursor.c
@@ -58,13 +58,10 @@ int soft_cursor(struct fb_info *info, struct fb_cursor *cursor)
58 } else 58 } else
59 memcpy(src, image->data, dsize); 59 memcpy(src, image->data, dsize);
60 60
61 fb_sysmove_buf_aligned(info, &info->pixmap, dst, d_pitch, src, 61 fb_pad_aligned_buffer(dst, d_pitch, src, s_pitch, image->height);
62 s_pitch, image->height);
63
64 image->data = dst; 62 image->data = dst;
65 info->fbops->fb_imageblit(info, image); 63 info->fbops->fb_imageblit(info, image);
66 kfree(src); 64 kfree(src);
67
68 return 0; 65 return 0;
69} 66}
70 67