diff options
| author | Jaehoon Chung <jh80.chung@samsung.com> | 2018-02-23 01:41:33 -0500 |
|---|---|---|
| committer | Ulf Hansson <ulf.hansson@linaro.org> | 2018-03-15 04:24:20 -0400 |
| commit | 86b93a4825d8fa22f05e712a0e70b7406e1df1b5 (patch) | |
| tree | 6679693705503ecc4803b2f2d62a7f60fa581880 | |
| parent | 611d059f1a136dcb76a68eb715dc5c66d8a0a3fd (diff) | |
mmc: dw_mmc: remove the deprecated "clock-freq-min-max" property
'clock-freq-min-max' property had already deprecated.
Remove the 'clock-freq-min-max' property that is kept to maintain
the compatibility.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
| -rw-r--r-- | Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt | 4 | ||||
| -rw-r--r-- | drivers/mmc/host/dw_mmc.c | 15 |
2 files changed, 4 insertions, 15 deletions
diff --git a/Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt b/Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt index ef3e5f14067a..75c9fdca4aaf 100644 --- a/Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt +++ b/Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt | |||
| @@ -59,10 +59,6 @@ Optional properties: | |||
| 59 | is specified and the ciu clock is specified then we'll try to set the ciu | 59 | is specified and the ciu clock is specified then we'll try to set the ciu |
| 60 | clock to this at probe time. | 60 | clock to this at probe time. |
| 61 | 61 | ||
| 62 | * clock-freq-min-max (DEPRECATED): Minimum and Maximum clock frequency for card output | ||
| 63 | clock(cclk_out). If it's not specified, max is 200MHZ and min is 400KHz by default. | ||
| 64 | (Use the "max-frequency" instead of "clock-freq-min-max".) | ||
| 65 | |||
| 66 | * num-slots (DEPRECATED): specifies the number of slots supported by the controller. | 62 | * num-slots (DEPRECATED): specifies the number of slots supported by the controller. |
| 67 | The number of physical slots actually used could be equal or less than the | 63 | The number of physical slots actually used could be equal or less than the |
| 68 | value specified by num-slots. If this property is not specified, the value | 64 | value specified by num-slots. If this property is not specified, the value |
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index 09ed242de464..b07135e6f74f 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c | |||
| @@ -2799,6 +2799,10 @@ static int dw_mci_init_slot_caps(struct dw_mci_slot *slot) | |||
| 2799 | if (host->pdata->caps2) | 2799 | if (host->pdata->caps2) |
| 2800 | mmc->caps2 = host->pdata->caps2; | 2800 | mmc->caps2 = host->pdata->caps2; |
| 2801 | 2801 | ||
| 2802 | mmc->f_min = DW_MCI_FREQ_MIN; | ||
| 2803 | if (!mmc->f_max) | ||
| 2804 | mmc->f_max = DW_MCI_FREQ_MAX; | ||
| 2805 | |||
| 2802 | /* Process SDIO IRQs through the sdio_irq_work. */ | 2806 | /* Process SDIO IRQs through the sdio_irq_work. */ |
| 2803 | if (mmc->caps & MMC_CAP_SDIO_IRQ) | 2807 | if (mmc->caps & MMC_CAP_SDIO_IRQ) |
| 2804 | mmc->caps2 |= MMC_CAP2_SDIO_IRQ_NOTHREAD; | 2808 | mmc->caps2 |= MMC_CAP2_SDIO_IRQ_NOTHREAD; |
| @@ -2811,7 +2815,6 @@ static int dw_mci_init_slot(struct dw_mci *host) | |||
| 2811 | struct mmc_host *mmc; | 2815 | struct mmc_host *mmc; |
| 2812 | struct dw_mci_slot *slot; | 2816 | struct dw_mci_slot *slot; |
| 2813 | int ret; | 2817 | int ret; |
| 2814 | u32 freq[2]; | ||
| 2815 | 2818 | ||
| 2816 | mmc = mmc_alloc_host(sizeof(struct dw_mci_slot), host->dev); | 2819 | mmc = mmc_alloc_host(sizeof(struct dw_mci_slot), host->dev); |
| 2817 | if (!mmc) | 2820 | if (!mmc) |
| @@ -2825,16 +2828,6 @@ static int dw_mci_init_slot(struct dw_mci *host) | |||
| 2825 | host->slot = slot; | 2828 | host->slot = slot; |
| 2826 | 2829 | ||
| 2827 | mmc->ops = &dw_mci_ops; | 2830 | mmc->ops = &dw_mci_ops; |
| 2828 | if (device_property_read_u32_array(host->dev, "clock-freq-min-max", | ||
| 2829 | freq, 2)) { | ||
| 2830 | mmc->f_min = DW_MCI_FREQ_MIN; | ||
| 2831 | mmc->f_max = DW_MCI_FREQ_MAX; | ||
| 2832 | } else { | ||
| 2833 | dev_info(host->dev, | ||
| 2834 | "'clock-freq-min-max' property was deprecated.\n"); | ||
| 2835 | mmc->f_min = freq[0]; | ||
| 2836 | mmc->f_max = freq[1]; | ||
| 2837 | } | ||
| 2838 | 2831 | ||
| 2839 | /*if there are external regulators, get them*/ | 2832 | /*if there are external regulators, get them*/ |
| 2840 | ret = mmc_regulator_get_supply(mmc); | 2833 | ret = mmc_regulator_get_supply(mmc); |
