aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/omapdrm
diff options
context:
space:
mode:
authorGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2012-06-13 16:57:09 -0700
committerGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2012-06-13 16:57:09 -0700
commit89a86a2da30a6a90dda719874092905cd762b7ef (patch)
tree140a289a990e7810e9c365bce304af1e065ca649 /drivers/staging/omapdrm
parentstaging: android: alarm: remove unnecessary goto statement (diff)
parentpstore/inode: Make pstore_fill_super() static (diff)
downloadlinux-89a86a2da30a6a90dda719874092905cd762b7ef.tar.gz
linux-89a86a2da30a6a90dda719874092905cd762b7ef.tar.bz2
linux-89a86a2da30a6a90dda719874092905cd762b7ef.zip
Merge branch 'staging-linus' into staging-next
We need this for the pstore fixes that went into the staging-linus branch, so that things apply properly for the pstore/android code merge. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/omapdrm')
-rw-r--r--drivers/staging/omapdrm/omap_fbdev.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/staging/omapdrm/omap_fbdev.c b/drivers/staging/omapdrm/omap_fbdev.c
index 11acd4c35ed2..8c6ed3b0c6f6 100644
--- a/drivers/staging/omapdrm/omap_fbdev.c
+++ b/drivers/staging/omapdrm/omap_fbdev.c
@@ -208,7 +208,8 @@ static int omap_fbdev_create(struct drm_fb_helper *helper,
*/
ret = omap_gem_get_paddr(fbdev->bo, &paddr, true);
if (ret) {
- dev_err(dev->dev, "could not map (paddr)!\n");
+ dev_err(dev->dev,
+ "could not map (paddr)! Skipping framebuffer alloc\n");
ret = -ENOMEM;
goto fail;
}
@@ -388,8 +389,11 @@ void omap_fbdev_free(struct drm_device *dev)
fbi = helper->fbdev;
- unregister_framebuffer(fbi);
- framebuffer_release(fbi);
+ /* only cleanup framebuffer if it is present */
+ if (fbi) {
+ unregister_framebuffer(fbi);
+ framebuffer_release(fbi);
+ }
drm_fb_helper_fini(helper);