Commit 1f7d6819e56dda651a32b0193ff9e7929f62709f

Authored by Magnus Damm
Committed by Chris Ball
1 parent 3ab5006471

mmc: sdhi: print physical base address and clock rate

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>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Chris Ball <cjb@laptop.org>

Showing 1 changed file with 4 additions and 2 deletions Side-by-side Diff

drivers/mmc/host/sh_mobile_sdhi.c
... ... @@ -126,8 +126,10 @@
126 126 if (ret)
127 127 goto eirq;
128 128  
129   - pr_info("%s at 0x%08lx irq %d\n", mmc_hostname(host->mmc),
130   - (unsigned long)host->ctl, irq);
  129 + dev_info(&pdev->dev, "%s base at 0x%08lx clock rate %u MHz\n",
  130 + mmc_hostname(host->mmc), (unsigned long)
  131 + (platform_get_resource(pdev,IORESOURCE_MEM, 0)->start),
  132 + mmc_data->hclk / 1000000);
131 133  
132 134 return ret;
133 135