diff options
-rw-r--r-- | drivers/mmc/host/omap_hsmmc.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 920964ac3214..2aa963dcbdbd 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c | |||
@@ -1785,7 +1785,7 @@ static inline struct omap_mmc_platform_data | |||
1785 | } | 1785 | } |
1786 | #endif | 1786 | #endif |
1787 | 1787 | ||
1788 | static int __init omap_hsmmc_probe(struct platform_device *pdev) | 1788 | static int __devinit omap_hsmmc_probe(struct platform_device *pdev) |
1789 | { | 1789 | { |
1790 | struct omap_mmc_platform_data *pdata = pdev->dev.platform_data; | 1790 | struct omap_mmc_platform_data *pdata = pdev->dev.platform_data; |
1791 | struct mmc_host *mmc; | 1791 | struct mmc_host *mmc; |
@@ -2036,7 +2036,7 @@ err: | |||
2036 | return ret; | 2036 | return ret; |
2037 | } | 2037 | } |
2038 | 2038 | ||
2039 | static int omap_hsmmc_remove(struct platform_device *pdev) | 2039 | static int __devexit omap_hsmmc_remove(struct platform_device *pdev) |
2040 | { | 2040 | { |
2041 | struct omap_hsmmc_host *host = platform_get_drvdata(pdev); | 2041 | struct omap_hsmmc_host *host = platform_get_drvdata(pdev); |
2042 | struct resource *res; | 2042 | struct resource *res; |
@@ -2194,7 +2194,8 @@ static struct dev_pm_ops omap_hsmmc_dev_pm_ops = { | |||
2194 | }; | 2194 | }; |
2195 | 2195 | ||
2196 | static struct platform_driver omap_hsmmc_driver = { | 2196 | static struct platform_driver omap_hsmmc_driver = { |
2197 | .remove = omap_hsmmc_remove, | 2197 | .probe = omap_hsmmc_probe, |
2198 | .remove = __devexit_p(omap_hsmmc_remove), | ||
2198 | .driver = { | 2199 | .driver = { |
2199 | .name = DRIVER_NAME, | 2200 | .name = DRIVER_NAME, |
2200 | .owner = THIS_MODULE, | 2201 | .owner = THIS_MODULE, |
@@ -2206,7 +2207,7 @@ static struct platform_driver omap_hsmmc_driver = { | |||
2206 | static int __init omap_hsmmc_init(void) | 2207 | static int __init omap_hsmmc_init(void) |
2207 | { | 2208 | { |
2208 | /* Register the MMC driver */ | 2209 | /* Register the MMC driver */ |
2209 | return platform_driver_probe(&omap_hsmmc_driver, omap_hsmmc_probe); | 2210 | return platform_driver_register(&omap_hsmmc_driver); |
2210 | } | 2211 | } |
2211 | 2212 | ||
2212 | static void __exit omap_hsmmc_cleanup(void) | 2213 | static void __exit omap_hsmmc_cleanup(void) |