aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/epson1355fb.c
diff options
context:
space:
mode:
authorRoland Stigge <stigge@antcom.de>2007-05-08 00:38:31 -0700
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-08 11:15:28 -0700
commit19f3d3a5546be431f3846d8a8581e7a2f169dba3 (patch)
tree95a3c0d25148caa415b8dca931b1887c64de8a9d /drivers/video/epson1355fb.c
parentc930faaed551aac898c618a7df1d68901ff244f0 (diff)
downloadkernel_samsung_smdk4412-19f3d3a5546be431f3846d8a8581e7a2f169dba3.zip
kernel_samsung_smdk4412-19f3d3a5546be431f3846d8a8581e7a2f169dba3.tar.gz
kernel_samsung_smdk4412-19f3d3a5546be431f3846d8a8581e7a2f169dba3.tar.bz2
epson1355fb.c: fix error handling code
Fix error handling code Signed-off-by: Roland Stigge <stigge@antcom.de> Signed-off-by: Antonino Daplas <adaplas@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/epson1355fb.c')
-rw-r--r--drivers/video/epson1355fb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/epson1355fb.c b/drivers/video/epson1355fb.c
index 29e07c1..37e297d 100644
--- a/drivers/video/epson1355fb.c
+++ b/drivers/video/epson1355fb.c
@@ -650,9 +650,10 @@ int __init epson1355fb_probe(struct platform_device *dev)
}
info = framebuffer_alloc(sizeof(struct epson1355_par) + sizeof(u32) * 256, &dev->dev);
- if (!info)
+ if (!info) {
rc = -ENOMEM;
goto bail;
+ }
default_par = info->par;
default_par->reg_addr = (unsigned long) ioremap(EPSON1355FB_REGS_PHYS, EPSON1355FB_REGS_LEN);