diff options
author | Joe Perches <joe@perches.com> | 2014-09-12 17:56:56 -0400 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2014-09-24 04:13:09 -0400 |
commit | 6606110d89aefcb21b9e70adfe064987cbd8393a (patch) | |
tree | 599b064df3762b1da4d28f4e6ec9df0afcfacdd5 /drivers/mmc/card | |
parent | 48d11e067fc90ec9fc9c8f7ab982e5a83bf1887b (diff) |
mmc: Convert pr_warning to pr_warn
Use the much more common pr_warn instead of pr_warning.
Other miscellanea:
o Coalesce formats
o Realign arguments
o Remove extra spaces when coalescing formats
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/card')
-rw-r--r-- | drivers/mmc/card/block.c | 4 | ||||
-rw-r--r-- | drivers/mmc/card/queue.c | 6 | ||||
-rw-r--r-- | drivers/mmc/card/sdio_uart.c | 9 |
3 files changed, 8 insertions, 11 deletions
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index 5d2799730a32..1fa4c80ff886 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c | |||
@@ -1928,8 +1928,8 @@ static int mmc_blk_issue_rw_rq(struct mmc_queue *mq, struct request *rqc) | |||
1928 | case MMC_BLK_ECC_ERR: | 1928 | case MMC_BLK_ECC_ERR: |
1929 | if (brq->data.blocks > 1) { | 1929 | if (brq->data.blocks > 1) { |
1930 | /* Redo read one sector at a time */ | 1930 | /* Redo read one sector at a time */ |
1931 | pr_warning("%s: retrying using single block read\n", | 1931 | pr_warn("%s: retrying using single block read\n", |
1932 | req->rq_disk->disk_name); | 1932 | req->rq_disk->disk_name); |
1933 | disable_multi = 1; | 1933 | disable_multi = 1; |
1934 | break; | 1934 | break; |
1935 | } | 1935 | } |
diff --git a/drivers/mmc/card/queue.c b/drivers/mmc/card/queue.c index 3e049c13429c..feea926e32f8 100644 --- a/drivers/mmc/card/queue.c +++ b/drivers/mmc/card/queue.c | |||
@@ -229,14 +229,12 @@ int mmc_init_queue(struct mmc_queue *mq, struct mmc_card *card, | |||
229 | if (bouncesz > 512) { | 229 | if (bouncesz > 512) { |
230 | mqrq_cur->bounce_buf = kmalloc(bouncesz, GFP_KERNEL); | 230 | mqrq_cur->bounce_buf = kmalloc(bouncesz, GFP_KERNEL); |
231 | if (!mqrq_cur->bounce_buf) { | 231 | if (!mqrq_cur->bounce_buf) { |
232 | pr_warning("%s: unable to " | 232 | pr_warn("%s: unable to allocate bounce cur buffer\n", |
233 | "allocate bounce cur buffer\n", | ||
234 | mmc_card_name(card)); | 233 | mmc_card_name(card)); |
235 | } | 234 | } |
236 | mqrq_prev->bounce_buf = kmalloc(bouncesz, GFP_KERNEL); | 235 | mqrq_prev->bounce_buf = kmalloc(bouncesz, GFP_KERNEL); |
237 | if (!mqrq_prev->bounce_buf) { | 236 | if (!mqrq_prev->bounce_buf) { |
238 | pr_warning("%s: unable to " | 237 | pr_warn("%s: unable to allocate bounce prev buffer\n", |
239 | "allocate bounce prev buffer\n", | ||
240 | mmc_card_name(card)); | 238 | mmc_card_name(card)); |
241 | kfree(mqrq_cur->bounce_buf); | 239 | kfree(mqrq_cur->bounce_buf); |
242 | mqrq_cur->bounce_buf = NULL; | 240 | mqrq_cur->bounce_buf = NULL; |
diff --git a/drivers/mmc/card/sdio_uart.c b/drivers/mmc/card/sdio_uart.c index f093cea0d060..d2de5925b73e 100644 --- a/drivers/mmc/card/sdio_uart.c +++ b/drivers/mmc/card/sdio_uart.c | |||
@@ -1063,8 +1063,8 @@ static int sdio_uart_probe(struct sdio_func *func, | |||
1063 | return -ENOMEM; | 1063 | return -ENOMEM; |
1064 | 1064 | ||
1065 | if (func->class == SDIO_CLASS_UART) { | 1065 | if (func->class == SDIO_CLASS_UART) { |
1066 | pr_warning("%s: need info on UART class basic setup\n", | 1066 | pr_warn("%s: need info on UART class basic setup\n", |
1067 | sdio_func_id(func)); | 1067 | sdio_func_id(func)); |
1068 | kfree(port); | 1068 | kfree(port); |
1069 | return -ENOSYS; | 1069 | return -ENOSYS; |
1070 | } else if (func->class == SDIO_CLASS_GPS) { | 1070 | } else if (func->class == SDIO_CLASS_GPS) { |
@@ -1082,9 +1082,8 @@ static int sdio_uart_probe(struct sdio_func *func, | |||
1082 | break; | 1082 | break; |
1083 | } | 1083 | } |
1084 | if (!tpl) { | 1084 | if (!tpl) { |
1085 | pr_warning( | 1085 | pr_warn("%s: can't find tuple 0x91 subtuple 0 (SUBTPL_SIOREG) for GPS class\n", |
1086 | "%s: can't find tuple 0x91 subtuple 0 (SUBTPL_SIOREG) for GPS class\n", | 1086 | sdio_func_id(func)); |
1087 | sdio_func_id(func)); | ||
1088 | kfree(port); | 1087 | kfree(port); |
1089 | return -EINVAL; | 1088 | return -EINVAL; |
1090 | } | 1089 | } |