Skip to content

Commit

Permalink
mmc: dw_mmc: add the "reset" as name of reset controller
Browse files Browse the repository at this point in the history
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: d6786fe ("mmc: dw_mmc: add reset support to dwmmc host controller")
Signed-off-by: Jaehoon Chung <[email protected]>
Acked-by: John Stultz <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
  • Loading branch information
Jaehoon Chung authored and storulf committed Nov 7, 2016
1 parent 9a76a3a commit 3a667e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/host/dw_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3a667e3

Please sign in to comment.