diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2012-11-28 10:24:13 +0100 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-12-06 13:55:08 -0500 |
commit | 369213bdc94d15611d0f17fc4abfb04a450b5757 (patch) | |
tree | 521de2a3059e801013d16026579c192e20693980 /drivers/mmc | |
parent | 8db580ccfd3b3aa0f7d800d2db4e8c32e7da2cda (diff) | |
download | linux-3.10-369213bdc94d15611d0f17fc4abfb04a450b5757.tar.gz linux-3.10-369213bdc94d15611d0f17fc4abfb04a450b5757.tar.bz2 linux-3.10-369213bdc94d15611d0f17fc4abfb04a450b5757.zip |
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 <g.liakhovetski@gmx.de>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/sh_mobile_sdhi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/sh_mobile_sdhi.c b/drivers/mmc/host/sh_mobile_sdhi.c index 0bdc146178d..6a8306531a9 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; |