Skip to content

Commit

Permalink
mmc: atmel-mci: stop using specific initcall
Browse files Browse the repository at this point in the history
No more use late initcall to manage probing order. Use probe deferring
if needed.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
  • Loading branch information
ludovic.desroches@atmel.com authored and Ulf Hansson committed Dec 2, 2014
1 parent ab050b9 commit 5e0fe89
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions drivers/mmc/host/atmel-mci.c
Original file line number Diff line number Diff line change
Expand Up @@ -2565,26 +2565,15 @@ static const struct dev_pm_ops atmci_dev_pm_ops = {
};

static struct platform_driver atmci_driver = {
.probe = atmci_probe,
.remove = atmci_remove,
.driver = {
.name = "atmel_mci",
.of_match_table = of_match_ptr(atmci_dt_ids),
.pm = &atmci_dev_pm_ops,
},
};

static int __init atmci_init(void)
{
return platform_driver_probe(&atmci_driver, atmci_probe);
}

static void __exit atmci_exit(void)
{
platform_driver_unregister(&atmci_driver);
}

late_initcall(atmci_init); /* try to load after dma driver when built-in */
module_exit(atmci_exit);
module_platform_driver(atmci_driver);

MODULE_DESCRIPTION("Atmel Multimedia Card Interface driver");
MODULE_AUTHOR("Haavard Skinnemoen (Atmel)");
Expand Down

0 comments on commit 5e0fe89

Please sign in to comment.