|
@@ -297,32 +297,13 @@ static int omap_hsmmc_set_power(struct device *dev, int slot, int power_on,
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
-static int omap_hsmmc_4_set_power(struct device *dev, int slot, int power_on,
|
|
|
- int vdd)
|
|
|
-{
|
|
|
- return 0;
|
|
|
-}
|
|
|
-
|
|
|
static int omap_hsmmc_reg_get(struct omap_hsmmc_host *host)
|
|
|
{
|
|
|
struct regulator *reg;
|
|
|
int ret = 0;
|
|
|
int ocr_value = 0;
|
|
|
|
|
|
- switch (host->id) {
|
|
|
- case OMAP_MMC1_DEVID:
|
|
|
- case OMAP_MMC2_DEVID:
|
|
|
- case OMAP_MMC3_DEVID:
|
|
|
- case OMAP_MMC5_DEVID:
|
|
|
- /* On-chip level shifting via PBIAS0/PBIAS1 */
|
|
|
- mmc_slot(host).set_power = omap_hsmmc_set_power;
|
|
|
- break;
|
|
|
- case OMAP_MMC4_DEVID:
|
|
|
- mmc_slot(host).set_power = omap_hsmmc_4_set_power;
|
|
|
- default:
|
|
|
- pr_err("MMC%d configuration not supported!\n", host->id);
|
|
|
- return -EINVAL;
|
|
|
- }
|
|
|
+ mmc_slot(host).set_power = omap_hsmmc_set_power;
|
|
|
|
|
|
reg = regulator_get(host->dev, "vmmc");
|
|
|
if (IS_ERR(reg)) {
|