]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commitdiff
mmc: tegra: Fix build break
authorPavan Kunapuli <pkunapuli@nvidia.com>
Thu, 16 Jun 2016 09:44:19 +0000 (15:14 +0530)
committerTimo Alho <talho@nvidia.com>
Thu, 16 Jun 2016 12:46:39 +0000 (05:46 -0700)
Removed undefined callback functions.

Bug 1778684

Change-Id: Iffed6388220ad0e53d2170922d2c97b49b86d3ba
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/1165716
Reviewed-by: Timo Alho <talho@nvidia.com>
Tested-by: Timo Alho <talho@nvidia.com>
drivers/mmc/host/sdhci-tegra.c

index ab2e0d61f7b7e878f596f4436208873d65b9843e..54227a6e4ad0defbb0c950da60bfe3ea73910a53 100644 (file)
@@ -929,7 +929,7 @@ static void tegra_sdhci_do_calibration(struct sdhci_host *sdhci,
                        SDMMC_AUTO_CAL_STATUS_AUTO_CAL_ACTIVE))
                        break;
 
-               usleep_range(1000, 1500);
+               mdelay(1);
                timeout--;
        } while (timeout);
 
@@ -1022,12 +1022,12 @@ static int tegra_sdhci_signal_voltage_switch(struct sdhci_host *sdhci,
        }
 
        /* Wait for the voltage to stabilize */
-       usleep_range(10000, 15000);
+       mdelay(10);
 
        sdhci_set_clock(sdhci, clock);
 
        /* Wait 1 msec for clock to stabilize */
-       usleep_range(1000, 1500);
+       mdelay(1);
 
        tegra_host->check_pad_ctrl_setting = true;
 
@@ -1126,8 +1126,6 @@ static const struct sdhci_ops tegra_sdhci_ops = {
        .switch_signal_voltage = tegra_sdhci_signal_voltage_switch,
        .switch_signal_voltage_exit = tegra_sdhci_post_voltage_switch,
        .switch_signal_voltage_enter = tegra_sdhci_pre_voltage_switch,
-       .do_calibration = tegra_sdhci_do_calibration,
-       .is_tuning_done         = tegra_sdhci_is_tuning_done,
 };
 
 static const struct sdhci_pltfm_data sdhci_tegra20_pdata = {