diff options
| -rw-r--r-- | drivers/mmc/host/omap_hsmmc.c | 15 | ||||
| -rw-r--r-- | include/linux/platform_data/hsmmc-omap.h | 9 |
2 files changed, 1 insertions, 23 deletions
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 4957c5fe555b..03e8e9aa3756 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c | |||
| @@ -2204,18 +2204,10 @@ static int omap_hsmmc_probe(struct platform_device *pdev) | |||
| 2204 | goto err_irq; | 2204 | goto err_irq; |
| 2205 | } | 2205 | } |
| 2206 | 2206 | ||
| 2207 | if (pdata->init != NULL) { | ||
| 2208 | if (pdata->init(&pdev->dev) != 0) { | ||
| 2209 | dev_err(mmc_dev(host->mmc), | ||
| 2210 | "Unable to configure MMC IRQs\n"); | ||
| 2211 | goto err_irq; | ||
| 2212 | } | ||
| 2213 | } | ||
| 2214 | |||
| 2215 | if (omap_hsmmc_have_reg() && !mmc_slot(host).set_power) { | 2207 | if (omap_hsmmc_have_reg() && !mmc_slot(host).set_power) { |
| 2216 | ret = omap_hsmmc_reg_get(host); | 2208 | ret = omap_hsmmc_reg_get(host); |
| 2217 | if (ret) | 2209 | if (ret) |
| 2218 | goto err_reg; | 2210 | goto err_irq; |
| 2219 | host->use_reg = 1; | 2211 | host->use_reg = 1; |
| 2220 | } | 2212 | } |
| 2221 | 2213 | ||
| @@ -2278,9 +2270,6 @@ err_slot_name: | |||
| 2278 | err_irq_cd: | 2270 | err_irq_cd: |
| 2279 | if (host->use_reg) | 2271 | if (host->use_reg) |
| 2280 | omap_hsmmc_reg_put(host); | 2272 | omap_hsmmc_reg_put(host); |
| 2281 | err_reg: | ||
| 2282 | if (host->pdata->cleanup) | ||
| 2283 | host->pdata->cleanup(&pdev->dev); | ||
| 2284 | err_irq: | 2273 | err_irq: |
| 2285 | if (host->tx_chan) | 2274 | if (host->tx_chan) |
| 2286 | dma_release_channel(host->tx_chan); | 2275 | dma_release_channel(host->tx_chan); |
| @@ -2306,8 +2295,6 @@ static int omap_hsmmc_remove(struct platform_device *pdev) | |||
| 2306 | mmc_remove_host(host->mmc); | 2295 | mmc_remove_host(host->mmc); |
| 2307 | if (host->use_reg) | 2296 | if (host->use_reg) |
| 2308 | omap_hsmmc_reg_put(host); | 2297 | omap_hsmmc_reg_put(host); |
| 2309 | if (host->pdata->cleanup) | ||
| 2310 | host->pdata->cleanup(&pdev->dev); | ||
| 2311 | 2298 | ||
| 2312 | if (host->tx_chan) | 2299 | if (host->tx_chan) |
| 2313 | dma_release_channel(host->tx_chan); | 2300 | dma_release_channel(host->tx_chan); |
diff --git a/include/linux/platform_data/hsmmc-omap.h b/include/linux/platform_data/hsmmc-omap.h index 11d7ed99603f..7e70e15154e4 100644 --- a/include/linux/platform_data/hsmmc-omap.h +++ b/include/linux/platform_data/hsmmc-omap.h | |||
| @@ -47,14 +47,6 @@ struct omap_hsmmc_platform_data { | |||
| 47 | * maximum frequency on the MMC bus */ | 47 | * maximum frequency on the MMC bus */ |
| 48 | unsigned int max_freq; | 48 | unsigned int max_freq; |
| 49 | 49 | ||
| 50 | /* switch the bus to a new slot */ | ||
| 51 | int (*switch_slot)(struct device *dev, int slot); | ||
| 52 | /* initialize board-specific MMC functionality, can be NULL if | ||
| 53 | * not supported */ | ||
| 54 | int (*init)(struct device *dev); | ||
| 55 | void (*cleanup)(struct device *dev); | ||
| 56 | void (*shutdown)(struct device *dev); | ||
| 57 | |||
| 58 | /* To handle board related suspend/resume functionality for MMC */ | 50 | /* To handle board related suspend/resume functionality for MMC */ |
| 59 | int (*suspend)(struct device *dev, int slot); | 51 | int (*suspend)(struct device *dev, int slot); |
| 60 | int (*resume)(struct device *dev, int slot); | 52 | int (*resume)(struct device *dev, int slot); |
| @@ -97,7 +89,6 @@ struct omap_hsmmc_platform_data { | |||
| 97 | int switch_pin; /* gpio (card detect) */ | 89 | int switch_pin; /* gpio (card detect) */ |
| 98 | int gpio_wp; /* gpio (write protect) */ | 90 | int gpio_wp; /* gpio (write protect) */ |
| 99 | 91 | ||
| 100 | int (*set_bus_mode)(struct device *dev, int slot, int bus_mode); | ||
| 101 | int (*set_power)(struct device *dev, int slot, | 92 | int (*set_power)(struct device *dev, int slot, |
| 102 | int power_on, int vdd); | 93 | int power_on, int vdd); |
| 103 | int (*get_ro)(struct device *dev, int slot); | 94 | int (*get_ro)(struct device *dev, int slot); |
