diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-11-10 22:22:17 +0900 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2016-11-29 09:01:00 +0100 |
commit | 178b0fa0d465b2275bec46ebfb98bd5b5d27cf51 (patch) | |
tree | 091d9150a965dd250d74715d0592f6232b6c3dfd /drivers/mmc/host/sdhci-pltfm.h | |
parent | c833e92bbb6027005a8fa1811d6d17c8a1c19c04 (diff) | |
download | linux-178b0fa0d465b2275bec46ebfb98bd5b5d27cf51.tar.bz2 |
mmc: sdhci: remove unneeded (void *) casts in sdhci_(pltfm_)priv()
The type of host->private is (unsigned long *). No cast is needed
to return an opaque pointer.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-pltfm.h')
-rw-r--r-- | drivers/mmc/host/sdhci-pltfm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-pltfm.h b/drivers/mmc/host/sdhci-pltfm.h index 3280f2077959..957839d0fe37 100644 --- a/drivers/mmc/host/sdhci-pltfm.h +++ b/drivers/mmc/host/sdhci-pltfm.h @@ -106,7 +106,7 @@ extern unsigned int sdhci_pltfm_clk_get_max_clock(struct sdhci_host *host); static inline void *sdhci_pltfm_priv(struct sdhci_pltfm_host *host) { - return (void *)host->private; + return host->private; } extern const struct dev_pm_ops sdhci_pltfm_pmops; |