Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310341
b: refs/heads/master
c: d64f14e
h: refs/heads/master
i:
  310339: 3bce7b2
v: v3
  • Loading branch information
Tomi Valkeinen committed May 11, 2012
1 parent fcb2a79 commit 792a1f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: 6e7e8f06b2c77dbb5d28062a174e4d67aec4b924
refs/heads/master: d64f14e191310570264454998201a84d211f30aa
9 changes: 4 additions & 5 deletions trunk/drivers/video/omap2/omapfb/omapfb-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2307,7 +2307,7 @@ static int omapfb_init_display(struct omapfb2_device *fbdev,
return 0;
}

static int omapfb_probe(struct platform_device *pdev)
static int __init omapfb_probe(struct platform_device *pdev)
{
struct omapfb2_device *fbdev = NULL;
int r = 0;
Expand Down Expand Up @@ -2448,7 +2448,7 @@ static int omapfb_probe(struct platform_device *pdev)
return r;
}

static int omapfb_remove(struct platform_device *pdev)
static int __exit omapfb_remove(struct platform_device *pdev)
{
struct omapfb2_device *fbdev = platform_get_drvdata(pdev);

Expand All @@ -2462,8 +2462,7 @@ static int omapfb_remove(struct platform_device *pdev)
}

static struct platform_driver omapfb_driver = {
.probe = omapfb_probe,
.remove = omapfb_remove,
.remove = __exit_p(omapfb_remove),
.driver = {
.name = "omapfb",
.owner = THIS_MODULE,
Expand All @@ -2474,7 +2473,7 @@ static int __init omapfb_init(void)
{
DBG("omapfb_init\n");

if (platform_driver_register(&omapfb_driver)) {
if (platform_driver_probe(&omapfb_driver, omapfb_probe)) {
printk(KERN_ERR "failed to register omapfb driver\n");
return -ENODEV;
}
Expand Down

0 comments on commit 792a1f1

Please sign in to comment.