diff options
Diffstat (limited to 'drivers/mmc/host/tifm_sd.c')
-rw-r--r-- | drivers/mmc/host/tifm_sd.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/drivers/mmc/host/tifm_sd.c b/drivers/mmc/host/tifm_sd.c index 90c6b1b5da47..f70d04664cac 100644 --- a/drivers/mmc/host/tifm_sd.c +++ b/drivers/mmc/host/tifm_sd.c | |||
@@ -632,7 +632,7 @@ static void tifm_sd_request(struct mmc_host *mmc, struct mmc_request *mrq) | |||
632 | } | 632 | } |
633 | 633 | ||
634 | if (host->req) { | 634 | if (host->req) { |
635 | printk(KERN_ERR "%s : unfinished request detected\n", | 635 | pr_err("%s : unfinished request detected\n", |
636 | dev_name(&sock->dev)); | 636 | dev_name(&sock->dev)); |
637 | mrq->cmd->error = -ETIMEDOUT; | 637 | mrq->cmd->error = -ETIMEDOUT; |
638 | goto err_out; | 638 | goto err_out; |
@@ -672,7 +672,7 @@ static void tifm_sd_request(struct mmc_host *mmc, struct mmc_request *mrq) | |||
672 | r_data->flags & MMC_DATA_WRITE | 672 | r_data->flags & MMC_DATA_WRITE |
673 | ? PCI_DMA_TODEVICE | 673 | ? PCI_DMA_TODEVICE |
674 | : PCI_DMA_FROMDEVICE)) { | 674 | : PCI_DMA_FROMDEVICE)) { |
675 | printk(KERN_ERR "%s : scatterlist map failed\n", | 675 | pr_err("%s : scatterlist map failed\n", |
676 | dev_name(&sock->dev)); | 676 | dev_name(&sock->dev)); |
677 | mrq->cmd->error = -ENOMEM; | 677 | mrq->cmd->error = -ENOMEM; |
678 | goto err_out; | 678 | goto err_out; |
@@ -684,7 +684,7 @@ static void tifm_sd_request(struct mmc_host *mmc, struct mmc_request *mrq) | |||
684 | ? PCI_DMA_TODEVICE | 684 | ? PCI_DMA_TODEVICE |
685 | : PCI_DMA_FROMDEVICE); | 685 | : PCI_DMA_FROMDEVICE); |
686 | if (host->sg_len < 1) { | 686 | if (host->sg_len < 1) { |
687 | printk(KERN_ERR "%s : scatterlist map failed\n", | 687 | pr_err("%s : scatterlist map failed\n", |
688 | dev_name(&sock->dev)); | 688 | dev_name(&sock->dev)); |
689 | tifm_unmap_sg(sock, &host->bounce_buf, 1, | 689 | tifm_unmap_sg(sock, &host->bounce_buf, 1, |
690 | r_data->flags & MMC_DATA_WRITE | 690 | r_data->flags & MMC_DATA_WRITE |
@@ -748,7 +748,7 @@ static void tifm_sd_end_cmd(unsigned long data) | |||
748 | host->req = NULL; | 748 | host->req = NULL; |
749 | 749 | ||
750 | if (!mrq) { | 750 | if (!mrq) { |
751 | printk(KERN_ERR " %s : no request to complete?\n", | 751 | pr_err(" %s : no request to complete?\n", |
752 | dev_name(&sock->dev)); | 752 | dev_name(&sock->dev)); |
753 | spin_unlock_irqrestore(&sock->lock, flags); | 753 | spin_unlock_irqrestore(&sock->lock, flags); |
754 | return; | 754 | return; |
@@ -787,8 +787,7 @@ static void tifm_sd_abort(unsigned long data) | |||
787 | { | 787 | { |
788 | struct tifm_sd *host = (struct tifm_sd*)data; | 788 | struct tifm_sd *host = (struct tifm_sd*)data; |
789 | 789 | ||
790 | printk(KERN_ERR | 790 | pr_err("%s : card failed to respond for a long period of time " |
791 | "%s : card failed to respond for a long period of time " | ||
792 | "(%x, %x)\n", | 791 | "(%x, %x)\n", |
793 | dev_name(&host->dev->dev), host->req->cmd->opcode, host->cmd_flags); | 792 | dev_name(&host->dev->dev), host->req->cmd->opcode, host->cmd_flags); |
794 | 793 | ||
@@ -906,7 +905,7 @@ static int tifm_sd_initialize_host(struct tifm_sd *host) | |||
906 | } | 905 | } |
907 | 906 | ||
908 | if (rc) { | 907 | if (rc) { |
909 | printk(KERN_ERR "%s : controller failed to reset\n", | 908 | pr_err("%s : controller failed to reset\n", |
910 | dev_name(&sock->dev)); | 909 | dev_name(&sock->dev)); |
911 | return -ENODEV; | 910 | return -ENODEV; |
912 | } | 911 | } |
@@ -932,8 +931,7 @@ static int tifm_sd_initialize_host(struct tifm_sd *host) | |||
932 | } | 931 | } |
933 | 932 | ||
934 | if (rc) { | 933 | if (rc) { |
935 | printk(KERN_ERR | 934 | pr_err("%s : card not ready - probe failed on initialization\n", |
936 | "%s : card not ready - probe failed on initialization\n", | ||
937 | dev_name(&sock->dev)); | 935 | dev_name(&sock->dev)); |
938 | return -ENODEV; | 936 | return -ENODEV; |
939 | } | 937 | } |
@@ -954,7 +952,7 @@ static int tifm_sd_probe(struct tifm_dev *sock) | |||
954 | 952 | ||
955 | if (!(TIFM_SOCK_STATE_OCCUPIED | 953 | if (!(TIFM_SOCK_STATE_OCCUPIED |
956 | & readl(sock->addr + SOCK_PRESENT_STATE))) { | 954 | & readl(sock->addr + SOCK_PRESENT_STATE))) { |
957 | printk(KERN_WARNING "%s : card gone, unexpectedly\n", | 955 | pr_warning("%s : card gone, unexpectedly\n", |
958 | dev_name(&sock->dev)); | 956 | dev_name(&sock->dev)); |
959 | return rc; | 957 | return rc; |
960 | } | 958 | } |