video: dcu: fixup memory correct even without framebuffer
authorStefan Agner <stefan.agner@toradex.com>
Mon, 11 May 2015 06:28:52 +0000 (08:28 +0200)
committerStefan Agner <stefan.agner@toradex.com>
Mon, 11 May 2015 06:28:52 +0000 (08:28 +0200)
commita800d84c63fce033e3c1ca02e11f60c63850641e
tree06719ff6af7a63865629e5a0dc41d8e205cb917f
parent3974fc382adcc18c49228506bf256a7eaa211b06
video: dcu: fixup memory correct even without framebuffer

When there is no framebuffer allocated, e.g. no video environment
variable or an error during initialization, the framebuffer location
ends up to be NULL, in which case the fixup function calculates a
bogus memory size. Use the framebuffer size to make sure that memory
size is calculated right in any case.
drivers/video/fsl_dcu_fb.c