aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host
diff options
context:
space:
mode:
authorBen Dooks <ben.dooks@codethink.co.uk>2014-06-04 07:42:08 -0400
committerUlf Hansson <ulf.hansson@linaro.org>2014-07-09 05:26:00 -0400
commitce7eb68875967902890c752b341dd2b92b0699de (patch)
tree041aee39f1c4f5febb8d9b34cfce6b6a165c60e2 /drivers/mmc/host
parent8a125badbaf65d37cf09a866d1c8d496527da58b (diff)
mmc: sh-mmcif: update to print version and bus clock rate on probe
Change the initial print to show chip version and the bus rate it is working at instead of the driver version. This is more useful information as we already know which driver version from the kernel it is in. Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r--drivers/mmc/host/sh_mmcif.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/mmc/host/sh_mmcif.c b/drivers/mmc/host/sh_mmcif.c
index 656fbba4c422..dc9a28a29c18 100644
--- a/drivers/mmc/host/sh_mmcif.c
+++ b/drivers/mmc/host/sh_mmcif.c
@@ -1469,16 +1469,17 @@ static int sh_mmcif_probe(struct platform_device *pdev)
1469 1469
1470 mutex_init(&host->thread_lock); 1470 mutex_init(&host->thread_lock);
1471 1471
1472 clk_disable_unprepare(host->hclk);
1473 ret = mmc_add_host(mmc); 1472 ret = mmc_add_host(mmc);
1474 if (ret < 0) 1473 if (ret < 0)
1475 goto emmcaddh; 1474 goto emmcaddh;
1476 1475
1477 dev_pm_qos_expose_latency_limit(&pdev->dev, 100); 1476 dev_pm_qos_expose_latency_limit(&pdev->dev, 100);
1478 1477
1479 dev_info(&pdev->dev, "driver version %s\n", DRIVER_VERSION); 1478 dev_info(&pdev->dev, "Chip version 0x%04x, clock rate %luMHz\n",
1480 dev_dbg(&pdev->dev, "chip ver H'%04x\n", 1479 sh_mmcif_readl(host->addr, MMCIF_CE_VERSION) & 0xffff,
1481 sh_mmcif_readl(host->addr, MMCIF_CE_VERSION) & 0x0000ffff); 1480 clk_get_rate(host->hclk) / 1000000UL);
1481
1482 clk_disable_unprepare(host->hclk);
1482 return ret; 1483 return ret;
1483 1484
1484emmcaddh: 1485emmcaddh: