Commit 19f3d3a5 authored by Roland Stigge's avatar Roland Stigge Committed by Linus Torvalds

epson1355fb.c: fix error handling code

Fix error handling code
Signed-off-by: default avatarRoland Stigge <stigge@antcom.de>
Signed-off-by: default avatarAntonino Daplas <adaplas@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent c930faae
...@@ -650,9 +650,10 @@ int __init epson1355fb_probe(struct platform_device *dev) ...@@ -650,9 +650,10 @@ int __init epson1355fb_probe(struct platform_device *dev)
} }
info = framebuffer_alloc(sizeof(struct epson1355_par) + sizeof(u32) * 256, &dev->dev); info = framebuffer_alloc(sizeof(struct epson1355_par) + sizeof(u32) * 256, &dev->dev);
if (!info) if (!info) {
rc = -ENOMEM; rc = -ENOMEM;
goto bail; goto bail;
}
default_par = info->par; default_par = info->par;
default_par->reg_addr = (unsigned long) ioremap(EPSON1355FB_REGS_PHYS, EPSON1355FB_REGS_LEN); default_par->reg_addr = (unsigned long) ioremap(EPSON1355FB_REGS_PHYS, EPSON1355FB_REGS_LEN);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment