From: Rajendra Nayak Date: Thu, 23 Feb 2012 11:32:20 +0000 (+0530) Subject: mmc: omap_hsmmc: convert all pr_* to dev_* X-Git-Tag: upstream/snapshot3+hdmi~7826^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2cecdf002300bca86ce83b17a60f907d5a4ce7dc;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git mmc: omap_hsmmc: convert all pr_* to dev_* Convert all instances of pr_* prints within the driver to instead use dev_* prints. Reported-by: Russell King Signed-off-by: Rajendra Nayak Signed-off-by: Chris Ball --- diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 94d4638..0306aea 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -301,7 +301,7 @@ static int omap_hsmmc_reg_get(struct omap_hsmmc_host *host) mmc_slot(host).ocr_mask = ocr_value; } else { if (!(mmc_slot(host).ocr_mask & ocr_value)) { - pr_err("MMC ocrmask %x is not supported\n", + dev_err(host->dev, "ocrmask %x is not supported\n", mmc_slot(host).ocr_mask); mmc_slot(host).ocr_mask = 0; return -EINVAL; @@ -1131,14 +1131,14 @@ static void omap_hsmmc_protect_card(struct omap_hsmmc_host *host) host->reqs_blocked = 0; if (mmc_slot(host).get_cover_state(host->dev, host->slot_id)) { if (host->protect_card) { - pr_info("%s: cover is closed, " + dev_info(host->dev, "%s: cover is closed, " "card is now accessible\n", mmc_hostname(host->mmc)); host->protect_card = 0; } } else { if (!host->protect_card) { - pr_info("%s: cover is open, " + dev_info(host->dev, "%s: cover is open, " "card is now inaccessible\n", mmc_hostname(host->mmc)); host->protect_card = 1; @@ -1275,7 +1275,7 @@ static int omap_hsmmc_pre_dma_transfer(struct omap_hsmmc_host *host, if (!next && data->host_cookie && data->host_cookie != host->next_data.cookie) { - pr_warning("[%s] invalid cookie: data->host_cookie %d" + dev_warn(host->dev, "[%s] invalid cookie: data->host_cookie %d" " host->next_data.cookie %d\n", __func__, data->host_cookie, host->next_data.cookie); data->host_cookie = 0;