Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gma500: psbfb_create(): move depth initialization out of loop

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>

authored by

Kirill A. Shutemov and committed by
Dave Airlie
6aa1ead1 026abc33

+1 -1
+1 -1
drivers/gpu/drm/gma500/framebuffer.c
··· 391 391 mode_cmd.width = sizes->surface_width; 392 392 mode_cmd.height = sizes->surface_height; 393 393 bpp = sizes->surface_bpp; 394 + depth = sizes->surface_depth; 394 395 395 396 /* No 24bit packed */ 396 397 if (bpp == 24) ··· 404 403 * is ok with some fonts 405 404 */ 406 405 mode_cmd.pitches[0] = ALIGN(mode_cmd.width * ((bpp + 7) / 8), 4096 >> pitch_lines); 407 - depth = sizes->surface_depth; 408 406 409 407 size = mode_cmd.pitches[0] * mode_cmd.height; 410 408 size = ALIGN(size, PAGE_SIZE);