Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93045
b: refs/heads/master
c: f1ebe4e
h: refs/heads/master
i:
  93043: bfb56a5
v: v3
  • Loading branch information
David Brownell authored and David Woodhouse committed Apr 22, 2008
1 parent ff6e9c6 commit 2a123cb
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: 70b072550a59e787b46030ab104ac64e25fcc732
refs/heads/master: f1ebe4eba40e0ee862767893277d1b1a1e4cc85f
9 changes: 4 additions & 5 deletions trunk/drivers/mtd/maps/omap_nor.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static void omap_set_vpp(struct map_info *map, int enable)
}
}

static int __devinit omapflash_probe(struct platform_device *pdev)
static int __init omapflash_probe(struct platform_device *pdev)
{
int err;
struct omapflash_info *info;
Expand Down Expand Up @@ -130,7 +130,7 @@ static int __devinit omapflash_probe(struct platform_device *pdev)
return err;
}

static int __devexit omapflash_remove(struct platform_device *pdev)
static int __exit omapflash_remove(struct platform_device *pdev)
{
struct omapflash_info *info = platform_get_drvdata(pdev);

Expand All @@ -152,8 +152,7 @@ static int __devexit omapflash_remove(struct platform_device *pdev)
}

static struct platform_driver omapflash_driver = {
.probe = omapflash_probe,
.remove = __devexit_p(omapflash_remove),
.remove = __exit_p(omapflash_remove),
.driver = {
.name = "omapflash",
.owner = THIS_MODULE,
Expand All @@ -162,7 +161,7 @@ static struct platform_driver omapflash_driver = {

static int __init omapflash_init(void)
{
return platform_driver_register(&omapflash_driver);
return platform_driver_probe(&omapflash_driver, omapflash_probe);
}

static void __exit omapflash_exit(void)
Expand Down

0 comments on commit 2a123cb

Please sign in to comment.