struct regulator *reg;
        int ocr_value = 0;
 
-       reg = regulator_get(host->dev, "vmmc");
+       reg = devm_regulator_get(host->dev, "vmmc");
        if (IS_ERR(reg)) {
                dev_err(host->dev, "vmmc regulator missing\n");
                return PTR_ERR(reg);
                }
 
                /* Allow an aux regulator */
-               reg = regulator_get(host->dev, "vmmc_aux");
+               reg = devm_regulator_get_optional(host->dev, "vmmc_aux");
                host->vcc_aux = IS_ERR(reg) ? NULL : reg;
 
                /* For eMMC do not power off when not in sleep state */
 
 static void omap_hsmmc_reg_put(struct omap_hsmmc_host *host)
 {
-       regulator_put(host->vcc);
-       regulator_put(host->vcc_aux);
        mmc_slot(host).set_power = NULL;
 }