From patchwork Fri May 6 11:02:41 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 761922 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p46B2kGf003312 for ; Fri, 6 May 2011 11:02:55 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755288Ab1EFLCy (ORCPT ); Fri, 6 May 2011 07:02:54 -0400 Received: from moutng.kundenserver.de ([212.227.17.10]:64493 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755005Ab1EFLCx (ORCPT ); Fri, 6 May 2011 07:02:53 -0400 Received: from axis700.grange (pD9EB8F3A.dip0.t-ipconnect.de [217.235.143.58]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0M7A5y-1PWEK727Nu-00x3lm; Fri, 06 May 2011 13:02:41 +0200 Received: by axis700.grange (Postfix, from userid 1000) id 34F79189B89; Fri, 6 May 2011 13:02:41 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by axis700.grange (Postfix) with ESMTP id 31ED3189B88; Fri, 6 May 2011 13:02:41 +0200 (CEST) Date: Fri, 6 May 2011 13:02:41 +0200 (CEST) From: Guennadi Liakhovetski X-X-Sender: lyakh@axis700.grange To: linux-sh@vger.kernel.org cc: cjb@laptop.org, Magnus Damm , Paul Mundt , horms@verge.net.au, linux-mmc@vger.kernel.org Subject: [PATCH 3/4] mmc: sdhi: print out something useful In-Reply-To: Message-ID: References: MIME-Version: 1.0 X-Provags-ID: V02:K0:89aZvfMteWqPa1ojbzvarZRdAWAiYskoa/R4JVKg09b qksUby+YSG0S6y7dQ2mb7V7btmWrAaCuKGtt8GkJY4yxZcXvZ3 0G7KZLIM+T/VC4o+c4pEMmqp1kRk4+3tXng0yEGVUU/uvA9U2o Ko8ZX0BW3crnELtCottYzqdxvjX06rWjw/FNiOh7Z/ugizpt+4 YbhBVDC+vzuOgCtRA3AvEAHCGurm2W/BgWuU89cwAQ= Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Fri, 06 May 2011 11:02:55 +0000 (UTC) From: Magnus Damm 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 Signed-off-by: Guennadi Liakhovetski --- drivers/mmc/host/sh_mobile_sdhi.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/sh_mobile_sdhi.c b/drivers/mmc/host/sh_mobile_sdhi.c index c489547..2bd235b 100644 --- a/drivers/mmc/host/sh_mobile_sdhi.c +++ b/drivers/mmc/host/sh_mobile_sdhi.c @@ -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;