video: fbdev: s3c-fb: return -ENOMEM on framebuffer_alloc() failure

Fix error code from -ENOENT to -ENOMEM.

Acked-by: Jingoo Han <jingoohan1@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
This commit is contained in:
Bartlomiej Zolnierkiewicz 2019-06-28 12:30:05 +02:00
parent c2d3c8a424
commit 602ecfbc04

View File

@ -1191,7 +1191,7 @@ static int s3c_fb_probe_win(struct s3c_fb *sfb, unsigned int win_no,
palette_size * sizeof(u32), sfb->dev);
if (!fbinfo) {
dev_err(sfb->dev, "failed to allocate framebuffer\n");
return -ENOENT;
return -ENOMEM;
}
windata = sfb->pdata->win[win_no];