summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/fb.c')
-rw-r--r--arch/arm/mach-omap2/fb.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/fb.c b/arch/arm/mach-omap2/fb.c
index 190ae493c6ef..2ca33cc0c484 100644
--- a/arch/arm/mach-omap2/fb.c
+++ b/arch/arm/mach-omap2/fb.c
@@ -83,10 +83,7 @@ static int __init omap_init_vrfb(void)
pdev = platform_device_register_resndata(NULL, "omapvrfb", -1,
res, num_res, NULL, 0);
- if (IS_ERR(pdev))
- return PTR_ERR(pdev);
- else
- return 0;
+ return PTR_RET(pdev);
}
omap_arch_initcall(omap_init_vrfb);
OpenPOWER on IntegriCloud