Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311154
b: refs/heads/master
c: afb6a6a
h: refs/heads/master
v: v3
  • Loading branch information
Andy Gross authored and Greg Kroah-Hartman committed Jun 11, 2012
1 parent e942140 commit e59ecbf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 279bf2e57c30c9a4482b2b6ede11b31c41e35e78
refs/heads/master: afb6a6a01b51b6712485ea045e2b882061d250d9
10 changes: 7 additions & 3 deletions trunk/drivers/staging/omapdrm/omap_fbdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit e59ecbf

Please sign in to comment.