video: fbdev: sh_mobile_lcdcfb: fix error return code in sh_mobile_lcdc_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 8 Feb 2017 15:43:59 +0000 (16:43 +0100)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Wed, 8 Feb 2017 15:43:59 +0000 (16:43 +0100)
commitb49898ce606da268fa28fef40260cad8a20ce7b0
treefe59de852cc993fa233b43436b39f7e17a556ab8
parent8d22556873cbe36f30a0d018b9d8238425117515
video: fbdev: sh_mobile_lcdcfb: fix error return code in sh_mobile_lcdc_probe()

Fix to return error code -ENOMEM from the ioremap_nocache() error
handling case instead of 0, as done elsewhere in this function.

Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/sh_mobile_lcdcfb.c