diff options
| -rw-r--r-- | drivers/video/fbdev/clps711x-fb.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/video/fbdev/clps711x-fb.c b/drivers/video/fbdev/clps711x-fb.c index ff561073ee4e..42f909618f04 100644 --- a/drivers/video/fbdev/clps711x-fb.c +++ b/drivers/video/fbdev/clps711x-fb.c | |||
| @@ -287,14 +287,17 @@ static int clps711x_fb_probe(struct platform_device *pdev) | |||
| 287 | } | 287 | } |
| 288 | 288 | ||
| 289 | ret = of_get_fb_videomode(disp, &cfb->mode, OF_USE_NATIVE_MODE); | 289 | ret = of_get_fb_videomode(disp, &cfb->mode, OF_USE_NATIVE_MODE); |
| 290 | if (ret) | 290 | if (ret) { |
| 291 | of_node_put(disp); | ||
| 291 | goto out_fb_release; | 292 | goto out_fb_release; |
| 293 | } | ||
| 292 | 294 | ||
| 293 | of_property_read_u32(disp, "ac-prescale", &cfb->ac_prescale); | 295 | of_property_read_u32(disp, "ac-prescale", &cfb->ac_prescale); |
| 294 | cfb->cmap_invert = of_property_read_bool(disp, "cmap-invert"); | 296 | cfb->cmap_invert = of_property_read_bool(disp, "cmap-invert"); |
| 295 | 297 | ||
| 296 | ret = of_property_read_u32(disp, "bits-per-pixel", | 298 | ret = of_property_read_u32(disp, "bits-per-pixel", |
| 297 | &info->var.bits_per_pixel); | 299 | &info->var.bits_per_pixel); |
| 300 | of_node_put(disp); | ||
| 298 | if (ret) | 301 | if (ret) |
| 299 | goto out_fb_release; | 302 | goto out_fb_release; |
| 300 | 303 | ||
