[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1243279681-4233-6-git-send-email-philipp.zabel@gmail.com>
Date: Mon, 25 May 2009 21:28:01 +0200
From: Philipp Zabel <philipp.zabel@...il.com>
To: linux-kernel@...r.kernel.org
Cc: Ian Molton <spyro@....com>,
Philipp Zabel <philipp.zabel@...il.com>,
Pierre Ossman <pierre@...man.eu>
Subject: [PATCH 5/5] mmc: tmio_mmc: move probe function into __init section
As MFD cells are not hotpluggable, this should be safe to do.
Signed-off-by: Philipp Zabel <philipp.zabel@...il.com>
Cc: Pierre Ossman <pierre@...man.eu>
Cc: Ian Molton <spyro@....com>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists