Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109627
b: refs/heads/master
c: 34a35bd
h: refs/heads/master
i:
  109625: f3afe83
  109623: 19ff67e
v: v3
  • Loading branch information
Stanislaw Gruszka authored and Linus Torvalds committed Sep 5, 2008
1 parent f70483b commit 5561d01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: 3cb5599a84c557c0dd9a19feb63a3788268cf249
refs/heads/master: 34a35bddb9382fc2663e3137875ee58928f7d704
10 changes: 6 additions & 4 deletions trunk/drivers/video/atmel_lcdfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ static int __init atmel_lcdfb_probe(struct platform_device *pdev)
ret = register_framebuffer(info);
if (ret < 0) {
dev_err(dev, "failed to register framebuffer device: %d\n", ret);
goto free_cmap;
goto reset_drvdata;
}

/* add selected videomode to modelist */
Expand All @@ -955,7 +955,8 @@ static int __init atmel_lcdfb_probe(struct platform_device *pdev)

return 0;


reset_drvdata:
dev_set_drvdata(dev, NULL);
free_cmap:
fb_dealloc_cmap(&info->cmap);
unregister_irqs:
Expand Down Expand Up @@ -992,10 +993,11 @@ static int __exit atmel_lcdfb_remove(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
struct fb_info *info = dev_get_drvdata(dev);
struct atmel_lcdfb_info *sinfo = info->par;
struct atmel_lcdfb_info *sinfo;

if (!sinfo)
if (!info || !info->par)
return 0;
sinfo = info->par;

cancel_work_sync(&sinfo->task);
exit_backlight(sinfo);
Expand Down

0 comments on commit 5561d01

Please sign in to comment.