diff options
Diffstat (limited to 'drivers/video/bw2.c')
-rw-r--r-- | drivers/video/bw2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/bw2.c b/drivers/video/bw2.c index 7ba74cd4be61..6bea9a936798 100644 --- a/drivers/video/bw2.c +++ b/drivers/video/bw2.c | |||
@@ -319,8 +319,10 @@ static int __devinit bw2_probe(struct platform_device *op) | |||
319 | 319 | ||
320 | info->screen_base = of_ioremap(&op->resource[0], 0, | 320 | info->screen_base = of_ioremap(&op->resource[0], 0, |
321 | info->fix.smem_len, "bw2 ram"); | 321 | info->fix.smem_len, "bw2 ram"); |
322 | if (!info->screen_base) | 322 | if (!info->screen_base) { |
323 | err = -ENOMEM; | ||
323 | goto out_unmap_regs; | 324 | goto out_unmap_regs; |
325 | } | ||
324 | 326 | ||
325 | bw2_blank(FB_BLANK_UNBLANK, info); | 327 | bw2_blank(FB_BLANK_UNBLANK, info); |
326 | 328 | ||