[PATCH 5/5] mmc: tmio_mmc: move probe function into __init section

From: Philipp Zabel
Date: Mon May 25 2009 - 15:28:57 EST


As MFD cells are not hotpluggable, this should be safe to do.

Signed-off-by: Philipp Zabel <philipp.zabel@xxxxxxxxx>
Cc: Pierre Ossman <pierre@xxxxxxxxx>
Cc: Ian Molton <spyro@xxxxxxx>
---
drivers/mmc/host/tmio_mmc.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/mmc/host/tmio_mmc.c b/drivers/mmc/host/tmio_mmc.c
index b1b4e6c..5858279 100644
--- a/drivers/mmc/host/tmio_mmc.c
+++ b/drivers/mmc/host/tmio_mmc.c
@@ -514,7 +514,7 @@ out:
#define tmio_mmc_resume NULL
#endif

-static int __devinit tmio_mmc_probe(struct platform_device *dev)
+static int __init tmio_mmc_probe(struct platform_device *dev)
{
struct mfd_cell *cell = (struct mfd_cell *)dev->dev.platform_data;
struct tmio_mmc_data *pdata;
@@ -643,7 +643,6 @@ static struct platform_driver tmio_mmc_driver = {
.name = "tmio-mmc",
.owner = THIS_MODULE,
},
- .probe = tmio_mmc_probe,
.remove = __devexit_p(tmio_mmc_remove),
.suspend = tmio_mmc_suspend,
.resume = tmio_mmc_resume,
@@ -652,7 +651,7 @@ static struct platform_driver tmio_mmc_driver = {

static int __init tmio_mmc_init(void)
{
- return platform_driver_register(&tmio_mmc_driver);
+ return platform_driver_probe(&tmio_mmc_driver, tmio_mmc_probe);
}

static void __exit tmio_mmc_exit(void)
--
1.6.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/