mmc: dw_mmc: add the "reset" as name of reset controller
authorJaehoon Chung <jh80.chung@samsung.com>
Mon, 31 Oct 2016 02:49:42 +0000 (11:49 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 7 Nov 2016 07:53:46 +0000 (08:53 +0100)
Add the "reset" as name of reset controller.
This is for preventing the wrong operation. Even if some SoC has reset
controller, doesn't define "resets" in device-tree.
Then it might be waiting for reset controller and it should be stuck.

Fixes: d6786fefe816 ("mmc: dw_mmc: add reset support to dwmmc host controller")
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Acked-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc.c

index 4fcbc4012ed03b554185cf42eeb1567b915745f6..50a674be665586af87750896f7f01924d76a6e66 100644 (file)
@@ -2940,7 +2940,7 @@ static struct dw_mci_board *dw_mci_parse_dt(struct dw_mci *host)
                return ERR_PTR(-ENOMEM);
 
        /* find reset controller when exist */
-       pdata->rstc = devm_reset_control_get_optional(dev, NULL);
+       pdata->rstc = devm_reset_control_get_optional(dev, "reset");
        if (IS_ERR(pdata->rstc)) {
                if (PTR_ERR(pdata->rstc) == -EPROBE_DEFER)
                        return ERR_PTR(-EPROBE_DEFER);