]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mmc: sdhi: print physical base address and clock rate
authorMagnus Damm <damm@opensource.se>
Fri, 6 May 2011 11:02:41 +0000 (11:02 +0000)
committerChris Ball <cjb@laptop.org>
Wed, 25 May 2011 03:53:54 +0000 (23:53 -0400)
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>
drivers/mmc/host/sh_mobile_sdhi.c

index c4895478bfd6a0a15100af6a92544f7e8a2da935..2bd235b744dffb12c4d825415f5dda9a43fc515d 100644 (file)
@@ -126,8 +126,10 @@ static int __devinit sh_mobile_sdhi_probe(struct platform_device *pdev)
        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;