瀏覽代碼

mmc: omap_hsmmc: remove un-initialized callbacks from platform data

these callbacks are not set, probably legacy omap 1/2 features

Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Andreas Fenkart <afenkart@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Andreas Fenkart 10 年之前
父節點
當前提交
bb09d15114
共有 2 個文件被更改,包括 1 次插入23 次删除
  1. 1 14
      drivers/mmc/host/omap_hsmmc.c
  2. 0 9
      include/linux/platform_data/hsmmc-omap.h

+ 1 - 14
drivers/mmc/host/omap_hsmmc.c

@@ -2204,18 +2204,10 @@ static int omap_hsmmc_probe(struct platform_device *pdev)
 		goto err_irq;
 		goto err_irq;
 	}
 	}
 
 
-	if (pdata->init != NULL) {
-		if (pdata->init(&pdev->dev) != 0) {
-			dev_err(mmc_dev(host->mmc),
-				"Unable to configure MMC IRQs\n");
-			goto err_irq;
-		}
-	}
-
 	if (omap_hsmmc_have_reg() && !mmc_slot(host).set_power) {
 	if (omap_hsmmc_have_reg() && !mmc_slot(host).set_power) {
 		ret = omap_hsmmc_reg_get(host);
 		ret = omap_hsmmc_reg_get(host);
 		if (ret)
 		if (ret)
-			goto err_reg;
+			goto err_irq;
 		host->use_reg = 1;
 		host->use_reg = 1;
 	}
 	}
 
 
@@ -2278,9 +2270,6 @@ err_slot_name:
 err_irq_cd:
 err_irq_cd:
 	if (host->use_reg)
 	if (host->use_reg)
 		omap_hsmmc_reg_put(host);
 		omap_hsmmc_reg_put(host);
-err_reg:
-	if (host->pdata->cleanup)
-		host->pdata->cleanup(&pdev->dev);
 err_irq:
 err_irq:
 	if (host->tx_chan)
 	if (host->tx_chan)
 		dma_release_channel(host->tx_chan);
 		dma_release_channel(host->tx_chan);
@@ -2306,8 +2295,6 @@ static int omap_hsmmc_remove(struct platform_device *pdev)
 	mmc_remove_host(host->mmc);
 	mmc_remove_host(host->mmc);
 	if (host->use_reg)
 	if (host->use_reg)
 		omap_hsmmc_reg_put(host);
 		omap_hsmmc_reg_put(host);
-	if (host->pdata->cleanup)
-		host->pdata->cleanup(&pdev->dev);
 
 
 	if (host->tx_chan)
 	if (host->tx_chan)
 		dma_release_channel(host->tx_chan);
 		dma_release_channel(host->tx_chan);

+ 0 - 9
include/linux/platform_data/hsmmc-omap.h

@@ -47,14 +47,6 @@ struct omap_hsmmc_platform_data {
 	 * maximum frequency on the MMC bus */
 	 * maximum frequency on the MMC bus */
 	unsigned int max_freq;
 	unsigned int max_freq;
 
 
-	/* switch the bus to a new slot */
-	int (*switch_slot)(struct device *dev, int slot);
-	/* initialize board-specific MMC functionality, can be NULL if
-	 * not supported */
-	int (*init)(struct device *dev);
-	void (*cleanup)(struct device *dev);
-	void (*shutdown)(struct device *dev);
-
 	/* To handle board related suspend/resume functionality for MMC */
 	/* To handle board related suspend/resume functionality for MMC */
 	int (*suspend)(struct device *dev, int slot);
 	int (*suspend)(struct device *dev, int slot);
 	int (*resume)(struct device *dev, int slot);
 	int (*resume)(struct device *dev, int slot);
@@ -97,7 +89,6 @@ struct omap_hsmmc_platform_data {
 		int switch_pin;			/* gpio (card detect) */
 		int switch_pin;			/* gpio (card detect) */
 		int gpio_wp;			/* gpio (write protect) */
 		int gpio_wp;			/* gpio (write protect) */
 
 
-		int (*set_bus_mode)(struct device *dev, int slot, int bus_mode);
 		int (*set_power)(struct device *dev, int slot,
 		int (*set_power)(struct device *dev, int slot,
 				 int power_on, int vdd);
 				 int power_on, int vdd);
 		int (*get_ro)(struct device *dev, int slot);
 		int (*get_ro)(struct device *dev, int slot);