diff options
author | Faiz Abbas | 2020-01-16 19:42:18 +0530 |
---|---|---|
committer | Lokesh Vutla | 2020-01-20 10:10:28 +0530 |
commit | fe0e30c7ba6a8b3b94ff4bf2ac5dfae5ba60aa06 (patch) | |
tree | 01e289fc0a944a8c720e6a0c1a334ae4642fdd22 /drivers/mmc | |
parent | f03cb5c9e5b9aca3248366b1593098651c564ed1 (diff) |
mmc: am654_sdhci: Get Xin clock by name
Get clk_xin by name instead of by index to avoid having to put clocks in
the same order in all devices.
Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/am654_sdhci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index 7cd5516197c..a4359fcc181 100644 --- a/drivers/mmc/am654_sdhci.c +++ b/drivers/mmc/am654_sdhci.c @@ -223,7 +223,7 @@ static int am654_sdhci_probe(struct udevice *dev) unsigned long clock; int ret; - ret = clk_get_by_index(dev, 0, &clk); + ret = clk_get_by_name(dev, "clk_xin", &clk); if (ret) { dev_err(dev, "failed to get clock\n"); return ret; |