From: Guennadi Liakhovetski Date: Wed, 28 Nov 2012 09:24:13 +0000 (+0100) Subject: mmc: sh_mobile_sdhi: fix clock frequency printing X-Git-Tag: upstream/snapshot3+hdmi~6147^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=369213bdc94d15611d0f17fc4abfb04a450b5757;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git mmc: sh_mobile_sdhi: fix clock frequency printing During its probing the SDHI driver prints out the clock frequency, but does it wrongly, always reporting 0Hz. Use the MMC host frequency value to fix this issue. Signed-off-by: Guennadi Liakhovetski Reviewed-by: Simon Horman Signed-off-by: Chris Ball --- diff --git a/drivers/mmc/host/sh_mobile_sdhi.c b/drivers/mmc/host/sh_mobile_sdhi.c index 0bdc146..6a83065 100644 --- a/drivers/mmc/host/sh_mobile_sdhi.c +++ b/drivers/mmc/host/sh_mobile_sdhi.c @@ -250,7 +250,7 @@ static int __devinit sh_mobile_sdhi_probe(struct platform_device *pdev) dev_info(&pdev->dev, "%s base at 0x%08lx clock rate %u MHz\n", mmc_hostname(host->mmc), (unsigned long) (platform_get_resource(pdev, IORESOURCE_MEM, 0)->start), - mmc_data->hclk / 1000000); + host->mmc->f_max / 1000000); return ret;