diff options
Diffstat (limited to 'drivers/video/sunxvr1000.c')
-rw-r--r-- | drivers/video/sunxvr1000.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/sunxvr1000.c b/drivers/video/sunxvr1000.c index b7f27acaf817..729a50722bdf 100644 --- a/drivers/video/sunxvr1000.c +++ b/drivers/video/sunxvr1000.c | |||
@@ -141,8 +141,10 @@ static int __devinit gfb_probe(struct platform_device *op) | |||
141 | 141 | ||
142 | gp->fb_base = of_ioremap(&op->resource[6], 0, | 142 | gp->fb_base = of_ioremap(&op->resource[6], 0, |
143 | gp->fb_size, "gfb fb"); | 143 | gp->fb_size, "gfb fb"); |
144 | if (!gp->fb_base) | 144 | if (!gp->fb_base) { |
145 | err = -ENOMEM; | ||
145 | goto err_release_fb; | 146 | goto err_release_fb; |
147 | } | ||
146 | 148 | ||
147 | err = gfb_set_fbinfo(gp); | 149 | err = gfb_set_fbinfo(gp); |
148 | if (err) | 150 | if (err) |