Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96478
b: refs/heads/master
c: 7a6278e
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and Linus Torvalds committed May 13, 2008
1 parent cad7bc8 commit b9d4d48
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 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: 5aecd559871d23a3cc297e544c9d63f0b8441cf4
refs/heads/master: 7a6278e5e4bce72ace681ae3cf48209fb63a5420
11 changes: 4 additions & 7 deletions trunk/drivers/video/pnx4008/pnxrgbfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ static int rgbfb_remove(struct platform_device *pdev)
fb_dealloc_cmap(&info->cmap);
framebuffer_release(info);
platform_set_drvdata(pdev, NULL);
kfree(info);
}

pnx4008_free_dum_channel(channel_owned, pdev->id);
Expand Down Expand Up @@ -168,23 +167,21 @@ static int __devinit rgbfb_probe(struct platform_device *pdev)

ret = fb_alloc_cmap(&info->cmap, 256, 0);
if (ret < 0)
goto err2;
goto err1;

ret = register_framebuffer(info);
if (ret < 0)
goto err3;
goto err2;
platform_set_drvdata(pdev, info);

return 0;

err3:
fb_dealloc_cmap(&info->cmap);
err2:
framebuffer_release(info);
fb_dealloc_cmap(&info->cmap);
err1:
pnx4008_free_dum_channel(channel_owned, pdev->id);
err0:
kfree(info);
framebuffer_release(info);
err:
return ret;
}
Expand Down

0 comments on commit b9d4d48

Please sign in to comment.