diff options
author | Jeremy Linton <jeremy.linton@arm.com> | 2020-11-25 04:36:30 +0100 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2020-12-04 12:27:58 +0100 |
commit | cb80a7e917483150ca592bc7e15163341e7d4150 (patch) | |
tree | e0e30f0ae56f4d2157b034d9921590d4a6096ec3 /drivers/mmc | |
parent | memstick: r592: Fix error return in r592_probe() (diff) | |
download | linux-cb80a7e917483150ca592bc7e15163341e7d4150.tar.xz linux-cb80a7e917483150ca592bc7e15163341e7d4150.zip |
mmc: sdhci: Use more concise device_property_read_u64
Since we only need a single u64 the _array form is
unnecessarily. Use device_property_read_u64 instead.
Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20201125033630.603863-1-jeremy.linton@arm.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/sdhci.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 6edf9fffd934..646823ddd317 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -3994,10 +3994,10 @@ void __sdhci_read_caps(struct sdhci_host *host, const u16 *ver, if (host->v4_mode) sdhci_do_enable_v4_mode(host); - device_property_read_u64_array(mmc_dev(host->mmc), - "sdhci-caps-mask", &dt_caps_mask, 1); - device_property_read_u64_array(mmc_dev(host->mmc), - "sdhci-caps", &dt_caps, 1); + device_property_read_u64(mmc_dev(host->mmc), + "sdhci-caps-mask", &dt_caps_mask); + device_property_read_u64(mmc_dev(host->mmc), + "sdhci-caps", &dt_caps); v = ver ? *ver : sdhci_readw(host, SDHCI_HOST_VERSION); host->version = (v & SDHCI_SPEC_VER_MASK) >> SDHCI_SPEC_VER_SHIFT; |