summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2020-04-08 16:22:52 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2020-05-28 11:20:58 +0200
commitbcf89cb8e0467a6183a4a2a70e71d3c09edfb34a (patch)
treed14c5c92bff50ccb0169ef4f7edf478b021b6f64 /drivers/mmc
parent5fb6bf51f6d153c188087c7fef21f6a8cd481951 (diff)
downloadlinux-stable-bcf89cb8e0467a6183a4a2a70e71d3c09edfb34a.tar.gz
linux-stable-bcf89cb8e0467a6183a4a2a70e71d3c09edfb34a.tar.bz2
linux-stable-bcf89cb8e0467a6183a4a2a70e71d3c09edfb34a.zip
mmc: renesas_sdhi: simplify summary output
No need to call platform_get_resource twice when we still have the pointer from before. Also, use '%pa' for a resource_size_t pointer. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Link: https://lore.kernel.org/r/20200408142252.21958-1-wsa+renesas@sang-engineering.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/renesas_sdhi_core.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/mmc/host/renesas_sdhi_core.c b/drivers/mmc/host/renesas_sdhi_core.c
index 796b5eb50415..68432bb0255b 100644
--- a/drivers/mmc/host/renesas_sdhi_core.c
+++ b/drivers/mmc/host/renesas_sdhi_core.c
@@ -933,10 +933,8 @@ int renesas_sdhi_probe(struct platform_device *pdev,
goto eirq;
}
- dev_info(&pdev->dev, "%s base at 0x%08lx max clock rate %u MHz\n",
- mmc_hostname(host->mmc), (unsigned long)
- (platform_get_resource(pdev, IORESOURCE_MEM, 0)->start),
- host->mmc->f_max / 1000000);
+ dev_info(&pdev->dev, "%s base at %pa, max clock rate %u MHz\n",
+ mmc_hostname(host->mmc), &res->start, host->mmc->f_max / 1000000);
return ret;