SUPERH platform development
 help / color / mirror / Atom feed
* [PATCH 03/04] mmc: sdhi: print out something useful
@ 2011-05-02 15:10 Magnus Damm
  0 siblings, 0 replies; only message in thread
From: Magnus Damm @ 2011-05-02 15:10 UTC (permalink / raw)
  To: linux-sh

From: Magnus Damm <damm@opensource.se>

Instead of printing out useless information such
as the virtual base address and one of 4 interrupts,
convert the SDHI probe() to print out physical base
address together with clock rate.

We do have a struct device so make use of dev_info().

Signed-off-by: Magnus Damm <damm@opensource.se>
---

 drivers/mmc/host/sh_mobile_sdhi.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

--- 0003/drivers/mmc/host/sh_mobile_sdhi.c
+++ work/drivers/mmc/host/sh_mobile_sdhi.c	2011-05-02 23:31:22.000000000 +0900
@@ -124,8 +124,10 @@ static int __devinit sh_mobile_sdhi_prob
 	if (ret)
 		goto eirq;
 
-	pr_info("%s at 0x%08lx irq %d\n", mmc_hostname(host->mmc),
-		(unsigned long)host->ctl, irq);
+	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);
 
 	return ret;
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-02 15:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-02 15:10 [PATCH 03/04] mmc: sdhi: print out something useful Magnus Damm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox