From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ea0-x230.google.com ([2a00:1450:4013:c01::230]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UN4Xr-0006PH-RL for barebox@lists.infradead.org; Tue, 02 Apr 2013 16:58:52 +0000 Received: by mail-ea0-f176.google.com with SMTP id h10so336405eaj.21 for ; Tue, 02 Apr 2013 09:58:49 -0700 (PDT) From: Hubert Feurstein Date: Tue, 2 Apr 2013 18:58:06 +0200 Message-Id: <1364921887-6487-1-git-send-email-h.feurstein@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 1/2] mci-core: use dev_* for messages To: barebox@lists.infradead.org Signed-off-by: Hubert Feurstein --- drivers/mci/mci-core.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c index a269aee..49612de 100644 --- a/drivers/mci/mci-core.c +++ b/drivers/mci/mci-core.c @@ -430,8 +430,10 @@ static int mmc_change_freq(struct mci *mci) } /* No high-speed support */ - if (!mci->ext_csd[EXT_CSD_HS_TIMING]) + if (!mci->ext_csd[EXT_CSD_HS_TIMING]) { + dev_dbg(mci->mci_dev, "No high-speed support\n"); return 0; + } /* High Speed is set, there are two types: 52MHz and 26MHz */ if (cardtype & EXT_CSD_CARD_TYPE_52) @@ -669,7 +671,8 @@ static void mci_detect_version_from_csd(struct mci *mci) mci->version = MMC_VERSION_1_2; break; } - printf("detected card version %s\n", vstr); + + dev_info(mci->mci_dev, "detected card version %s\n", vstr); } } @@ -1169,7 +1172,7 @@ static int mci_sd_read(struct block_device *blk, void *buffer, int block, } if (block > MAX_BUFFER_NUMBER) { - pr_err("Cannot handle block number %d. Too large!\n", block); + dev_err(mci->mci_dev, "Cannot handle block number %d. Too large!\n", block); return -EINVAL; } @@ -1366,7 +1369,7 @@ static int mci_card_probe(struct mci *mci) /* start with a host interface reset */ rc = (host->init)(host, mci->mci_dev); if (rc) { - pr_err("Cannot reset the SD/MMC interface\n"); + dev_err(mci->mci_dev, "Cannot reset the SD/MMC interface\n"); return rc; } @@ -1376,7 +1379,7 @@ static int mci_card_probe(struct mci *mci) /* reset the card */ rc = mci_go_idle(mci); if (rc) { - pr_warning("Cannot reset the SD/MMC card\n"); + dev_warn(mci->mci_dev, "Cannot reset the SD/MMC card\n"); goto on_error; } -- 1.8.1.3 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox