Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Wolfram Sang and committed by
Ulf Hansson
bcf89cb8 5fb6bf51

+2 -4
+2 -4
drivers/mmc/host/renesas_sdhi_core.c
··· 933 933 goto eirq; 934 934 } 935 935 936 - dev_info(&pdev->dev, "%s base at 0x%08lx max clock rate %u MHz\n", 937 - mmc_hostname(host->mmc), (unsigned long) 938 - (platform_get_resource(pdev, IORESOURCE_MEM, 0)->start), 939 - host->mmc->f_max / 1000000); 936 + dev_info(&pdev->dev, "%s base at %pa, max clock rate %u MHz\n", 937 + mmc_hostname(host->mmc), &res->start, host->mmc->f_max / 1000000); 940 938 941 939 return ret; 942 940