Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142803
b: refs/heads/master
c: b513b6c
h: refs/heads/master
i:
  142801: 6f65e13
  142799: b9b74f0
v: v3
  • Loading branch information
Paulius Zaleckas authored and Pierre Ossman committed Apr 8, 2009
1 parent e0ac8d1 commit 1843f18
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: 3e44ddd44ea59354221b811605745ec453130c06
refs/heads/master: b513b6cc0fcbb0ef733eec487618da7ea2d7cc61
9 changes: 4 additions & 5 deletions trunk/drivers/mmc/host/imxmmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ static void imxmci_check_status(unsigned long data)
mod_timer(&host->timer, jiffies + (HZ>>1));
}

static int imxmci_probe(struct platform_device *pdev)
static int __init imxmci_probe(struct platform_device *pdev)
{
struct mmc_host *mmc;
struct imxmci_host *host = NULL;
Expand Down Expand Up @@ -1079,7 +1079,7 @@ static int imxmci_probe(struct platform_device *pdev)
return ret;
}

static int imxmci_remove(struct platform_device *pdev)
static int __exit imxmci_remove(struct platform_device *pdev)
{
struct mmc_host *mmc = platform_get_drvdata(pdev);

Expand Down Expand Up @@ -1145,8 +1145,7 @@ static int imxmci_resume(struct platform_device *dev)
#endif /* CONFIG_PM */

static struct platform_driver imxmci_driver = {
.probe = imxmci_probe,
.remove = imxmci_remove,
.remove = __exit_p(imxmci_remove),
.suspend = imxmci_suspend,
.resume = imxmci_resume,
.driver = {
Expand All @@ -1157,7 +1156,7 @@ static struct platform_driver imxmci_driver = {

static int __init imxmci_init(void)
{
return platform_driver_register(&imxmci_driver);
return platform_driver_probe(&imxmci_driver, imxmci_probe);
}

static void __exit imxmci_exit(void)
Expand Down

0 comments on commit 1843f18

Please sign in to comment.