Skip to contentSkip to conversation

mmc: sdhi: print out something useful

PATCH In review Magnus Damm 1 participant 1 message May 2, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/4 mmc: sdhi: print out something useful

From: Magnus Damm <[email protected]>

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().

---

 drivers/mmc/host/sh_mobile_sdhi.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/mmc/host/sh_mobile_sdhi.c +4 -2
@@ -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;