9
0
Fork 0

mci-core: use dev_* for messages

Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Hubert Feurstein 2013-04-02 18:58:06 +02:00 committed by Sascha Hauer
parent 50a9cadb0c
commit c833347874
1 changed files with 8 additions and 5 deletions

View File

@ -430,8 +430,10 @@ static int mmc_change_freq(struct mci *mci)
} }
/* No high-speed support */ /* 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; return 0;
}
/* High Speed is set, there are two types: 52MHz and 26MHz */ /* High Speed is set, there are two types: 52MHz and 26MHz */
if (cardtype & EXT_CSD_CARD_TYPE_52) 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; mci->version = MMC_VERSION_1_2;
break; 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) { 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; return -EINVAL;
} }
@ -1366,7 +1369,7 @@ static int mci_card_probe(struct mci *mci)
/* start with a host interface reset */ /* start with a host interface reset */
rc = (host->init)(host, mci->mci_dev); rc = (host->init)(host, mci->mci_dev);
if (rc) { 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; return rc;
} }
@ -1376,7 +1379,7 @@ static int mci_card_probe(struct mci *mci)
/* reset the card */ /* reset the card */
rc = mci_go_idle(mci); rc = mci_go_idle(mci);
if (rc) { 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; goto on_error;
} }