aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/core
diff options
context:
space:
mode:
authorGirish K S <girish.shivananjappa@linaro.org>2011-10-11 02:14:09 -0400
committerChris Ball <cjb@laptop.org>2011-10-26 16:32:22 -0400
commita3c76eb9d4a1e68a69dd880cf0bcb8a52418b993 (patch)
tree968fb0009edad3defcda8bb40df21837868705dd /drivers/mmc/core
parentb23cf0bd55b0c6b703982446f679e00d6d929524 (diff)
mmc: replace printk with appropriate display macro
All the files using printk function for displaying kernel messages in the mmc driver have been replaced with corresponding macro. Signed-off-by: Girish K S <girish.shivananjappa@linaro.org> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/core')
-rw-r--r--drivers/mmc/core/bus.c6
-rw-r--r--drivers/mmc/core/core.c10
-rw-r--r--drivers/mmc/core/mmc.c24
-rw-r--r--drivers/mmc/core/mmc_ops.c4
-rw-r--r--drivers/mmc/core/sd.c40
-rw-r--r--drivers/mmc/core/sdio.c6
-rw-r--r--drivers/mmc/core/sdio_bus.c2
-rw-r--r--drivers/mmc/core/sdio_cis.c4
-rw-r--r--drivers/mmc/core/sdio_irq.c6
9 files changed, 51 insertions, 51 deletions
diff --git a/drivers/mmc/core/bus.c b/drivers/mmc/core/bus.c
index 393d817ed040..46b6e84d953e 100644
--- a/drivers/mmc/core/bus.c
+++ b/drivers/mmc/core/bus.c
@@ -295,7 +295,7 @@ int mmc_add_card(struct mmc_card *card)
295 } 295 }
296 296
297 if (mmc_host_is_spi(card->host)) { 297 if (mmc_host_is_spi(card->host)) {
298 printk(KERN_INFO "%s: new %s%s%s card on SPI\n", 298 pr_info("%s: new %s%s%s card on SPI\n",
299 mmc_hostname(card->host), 299 mmc_hostname(card->host),
300 mmc_card_highspeed(card) ? "high speed " : "", 300 mmc_card_highspeed(card) ? "high speed " : "",
301 mmc_card_ddr_mode(card) ? "DDR " : "", 301 mmc_card_ddr_mode(card) ? "DDR " : "",
@@ -334,10 +334,10 @@ void mmc_remove_card(struct mmc_card *card)
334 334
335 if (mmc_card_present(card)) { 335 if (mmc_card_present(card)) {
336 if (mmc_host_is_spi(card->host)) { 336 if (mmc_host_is_spi(card->host)) {
337 printk(KERN_INFO "%s: SPI card removed\n", 337 pr_info("%s: SPI card removed\n",
338 mmc_hostname(card->host)); 338 mmc_hostname(card->host));
339 } else { 339 } else {
340 printk(KERN_INFO "%s: card %04x removed\n", 340 pr_info("%s: card %04x removed\n",
341 mmc_hostname(card->host), card->rca); 341 mmc_hostname(card->host), card->rca);
342 } 342 }
343 device_del(&card->dev); 343 device_del(&card->dev);
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index ec7694903008..61d7730bc8b2 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -1541,7 +1541,7 @@ static int mmc_do_erase(struct mmc_card *card, unsigned int from,
1541 cmd.flags = MMC_RSP_SPI_R1 | MMC_RSP_R1 | MMC_CMD_AC; 1541 cmd.flags = MMC_RSP_SPI_R1 | MMC_RSP_R1 | MMC_CMD_AC;
1542 err = mmc_wait_for_cmd(card->host, &cmd, 0); 1542 err = mmc_wait_for_cmd(card->host, &cmd, 0);
1543 if (err) { 1543 if (err) {
1544 printk(KERN_ERR "mmc_erase: group start error %d, " 1544 pr_err("mmc_erase: group start error %d, "
1545 "status %#x\n", err, cmd.resp[0]); 1545 "status %#x\n", err, cmd.resp[0]);
1546 err = -EIO; 1546 err = -EIO;
1547 goto out; 1547 goto out;
@@ -1556,7 +1556,7 @@ static int mmc_do_erase(struct mmc_card *card, unsigned int from,
1556 cmd.flags = MMC_RSP_SPI_R1 | MMC_RSP_R1 | MMC_CMD_AC; 1556 cmd.flags = MMC_RSP_SPI_R1 | MMC_RSP_R1 | MMC_CMD_AC;
1557 err = mmc_wait_for_cmd(card->host, &cmd, 0); 1557 err = mmc_wait_for_cmd(card->host, &cmd, 0);
1558 if (err) { 1558 if (err) {
1559 printk(KERN_ERR "mmc_erase: group end error %d, status %#x\n", 1559 pr_err("mmc_erase: group end error %d, status %#x\n",
1560 err, cmd.resp[0]); 1560 err, cmd.resp[0]);
1561 err = -EIO; 1561 err = -EIO;
1562 goto out; 1562 goto out;
@@ -1569,7 +1569,7 @@ static int mmc_do_erase(struct mmc_card *card, unsigned int from,
1569 cmd.cmd_timeout_ms = mmc_erase_timeout(card, arg, qty); 1569 cmd.cmd_timeout_ms = mmc_erase_timeout(card, arg, qty);
1570 err = mmc_wait_for_cmd(card->host, &cmd, 0); 1570 err = mmc_wait_for_cmd(card->host, &cmd, 0);
1571 if (err) { 1571 if (err) {
1572 printk(KERN_ERR "mmc_erase: erase error %d, status %#x\n", 1572 pr_err("mmc_erase: erase error %d, status %#x\n",
1573 err, cmd.resp[0]); 1573 err, cmd.resp[0]);
1574 err = -EIO; 1574 err = -EIO;
1575 goto out; 1575 goto out;
@@ -1586,7 +1586,7 @@ static int mmc_do_erase(struct mmc_card *card, unsigned int from,
1586 /* Do not retry else we can't see errors */ 1586 /* Do not retry else we can't see errors */
1587 err = mmc_wait_for_cmd(card->host, &cmd, 0); 1587 err = mmc_wait_for_cmd(card->host, &cmd, 0);
1588 if (err || (cmd.resp[0] & 0xFDF92000)) { 1588 if (err || (cmd.resp[0] & 0xFDF92000)) {
1589 printk(KERN_ERR "error %d requesting status %#x\n", 1589 pr_err("error %d requesting status %#x\n",
1590 err, cmd.resp[0]); 1590 err, cmd.resp[0]);
1591 err = -EIO; 1591 err = -EIO;
1592 goto out; 1592 goto out;
@@ -2177,7 +2177,7 @@ int mmc_resume_host(struct mmc_host *host)
2177 BUG_ON(!host->bus_ops->resume); 2177 BUG_ON(!host->bus_ops->resume);
2178 err = host->bus_ops->resume(host); 2178 err = host->bus_ops->resume(host);
2179 if (err) { 2179 if (err) {
2180 printk(KERN_WARNING "%s: error %d during resume " 2180 pr_warning("%s: error %d during resume "
2181 "(card was removed?)\n", 2181 "(card was removed?)\n",
2182 mmc_hostname(host), err); 2182 mmc_hostname(host), err);
2183 err = 0; 2183 err = 0;
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
index 7dde373d1439..4e869d371a03 100644
--- a/drivers/mmc/core/mmc.c
+++ b/drivers/mmc/core/mmc.c
@@ -101,7 +101,7 @@ static int mmc_decode_cid(struct mmc_card *card)
101 break; 101 break;
102 102
103 default: 103 default:
104 printk(KERN_ERR "%s: card has unknown MMCA version %d\n", 104 pr_err("%s: card has unknown MMCA version %d\n",
105 mmc_hostname(card->host), card->csd.mmca_vsn); 105 mmc_hostname(card->host), card->csd.mmca_vsn);
106 return -EINVAL; 106 return -EINVAL;
107 } 107 }
@@ -135,7 +135,7 @@ static int mmc_decode_csd(struct mmc_card *card)
135 */ 135 */
136 csd->structure = UNSTUFF_BITS(resp, 126, 2); 136 csd->structure = UNSTUFF_BITS(resp, 126, 2);
137 if (csd->structure == 0) { 137 if (csd->structure == 0) {
138 printk(KERN_ERR "%s: unrecognised CSD structure version %d\n", 138 pr_err("%s: unrecognised CSD structure version %d\n",
139 mmc_hostname(card->host), csd->structure); 139 mmc_hostname(card->host), csd->structure);
140 return -EINVAL; 140 return -EINVAL;
141 } 141 }
@@ -195,7 +195,7 @@ static int mmc_get_ext_csd(struct mmc_card *card, u8 **new_ext_csd)
195 */ 195 */
196 ext_csd = kmalloc(512, GFP_KERNEL); 196 ext_csd = kmalloc(512, GFP_KERNEL);
197 if (!ext_csd) { 197 if (!ext_csd) {
198 printk(KERN_ERR "%s: could not allocate a buffer to " 198 pr_err("%s: could not allocate a buffer to "
199 "receive the ext_csd.\n", mmc_hostname(card->host)); 199 "receive the ext_csd.\n", mmc_hostname(card->host));
200 return -ENOMEM; 200 return -ENOMEM;
201 } 201 }
@@ -217,12 +217,12 @@ static int mmc_get_ext_csd(struct mmc_card *card, u8 **new_ext_csd)
217 * stored in their CSD. 217 * stored in their CSD.
218 */ 218 */
219 if (card->csd.capacity == (4096 * 512)) { 219 if (card->csd.capacity == (4096 * 512)) {
220 printk(KERN_ERR "%s: unable to read EXT_CSD " 220 pr_err("%s: unable to read EXT_CSD "
221 "on a possible high capacity card. " 221 "on a possible high capacity card. "
222 "Card will be ignored.\n", 222 "Card will be ignored.\n",
223 mmc_hostname(card->host)); 223 mmc_hostname(card->host));
224 } else { 224 } else {
225 printk(KERN_WARNING "%s: unable to read " 225 pr_warning("%s: unable to read "
226 "EXT_CSD, performance might " 226 "EXT_CSD, performance might "
227 "suffer.\n", 227 "suffer.\n",
228 mmc_hostname(card->host)); 228 mmc_hostname(card->host));
@@ -252,7 +252,7 @@ static int mmc_read_ext_csd(struct mmc_card *card, u8 *ext_csd)
252 card->ext_csd.raw_ext_csd_structure = ext_csd[EXT_CSD_STRUCTURE]; 252 card->ext_csd.raw_ext_csd_structure = ext_csd[EXT_CSD_STRUCTURE];
253 if (card->csd.structure == 3) { 253 if (card->csd.structure == 3) {
254 if (card->ext_csd.raw_ext_csd_structure > 2) { 254 if (card->ext_csd.raw_ext_csd_structure > 2) {
255 printk(KERN_ERR "%s: unrecognised EXT_CSD structure " 255 pr_err("%s: unrecognised EXT_CSD structure "
256 "version %d\n", mmc_hostname(card->host), 256 "version %d\n", mmc_hostname(card->host),
257 card->ext_csd.raw_ext_csd_structure); 257 card->ext_csd.raw_ext_csd_structure);
258 err = -EINVAL; 258 err = -EINVAL;
@@ -262,7 +262,7 @@ static int mmc_read_ext_csd(struct mmc_card *card, u8 *ext_csd)
262 262
263 card->ext_csd.rev = ext_csd[EXT_CSD_REV]; 263 card->ext_csd.rev = ext_csd[EXT_CSD_REV];
264 if (card->ext_csd.rev > 6) { 264 if (card->ext_csd.rev > 6) {
265 printk(KERN_ERR "%s: unrecognised EXT_CSD revision %d\n", 265 pr_err("%s: unrecognised EXT_CSD revision %d\n",
266 mmc_hostname(card->host), card->ext_csd.rev); 266 mmc_hostname(card->host), card->ext_csd.rev);
267 err = -EINVAL; 267 err = -EINVAL;
268 goto out; 268 goto out;
@@ -308,7 +308,7 @@ static int mmc_read_ext_csd(struct mmc_card *card, u8 *ext_csd)
308 break; 308 break;
309 default: 309 default:
310 /* MMC v4 spec says this cannot happen */ 310 /* MMC v4 spec says this cannot happen */
311 printk(KERN_WARNING "%s: card is mmc v4 but doesn't " 311 pr_warning("%s: card is mmc v4 but doesn't "
312 "support any high-speed modes.\n", 312 "support any high-speed modes.\n",
313 mmc_hostname(card->host)); 313 mmc_hostname(card->host));
314 } 314 }
@@ -857,7 +857,7 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
857 goto free_card; 857 goto free_card;
858 858
859 if (err) { 859 if (err) {
860 printk(KERN_WARNING "%s: switch to highspeed failed\n", 860 pr_warning("%s: switch to highspeed failed\n",
861 mmc_hostname(card->host)); 861 mmc_hostname(card->host));
862 err = 0; 862 err = 0;
863 } else { 863 } else {
@@ -966,7 +966,7 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
966 card->ext_csd.generic_cmd6_time); 966 card->ext_csd.generic_cmd6_time);
967 } 967 }
968 if (err) { 968 if (err) {
969 printk(KERN_WARNING "%s: switch to bus width %d ddr %d " 969 pr_warning("%s: switch to bus width %d ddr %d "
970 "failed\n", mmc_hostname(card->host), 970 "failed\n", mmc_hostname(card->host),
971 1 << bus_width, ddr); 971 1 << bus_width, ddr);
972 goto free_card; 972 goto free_card;
@@ -1204,7 +1204,7 @@ int mmc_attach_mmc(struct mmc_host *host)
1204 * support. 1204 * support.
1205 */ 1205 */
1206 if (ocr & 0x7F) { 1206 if (ocr & 0x7F) {
1207 printk(KERN_WARNING "%s: card claims to support voltages " 1207 pr_warning("%s: card claims to support voltages "
1208 "below the defined range. These will be ignored.\n", 1208 "below the defined range. These will be ignored.\n",
1209 mmc_hostname(host)); 1209 mmc_hostname(host));
1210 ocr &= ~0x7F; 1210 ocr &= ~0x7F;
@@ -1243,7 +1243,7 @@ remove_card:
1243err: 1243err:
1244 mmc_detach_bus(host); 1244 mmc_detach_bus(host);
1245 1245
1246 printk(KERN_ERR "%s: error %d whilst initialising MMC card\n", 1246 pr_err("%s: error %d whilst initialising MMC card\n",
1247 mmc_hostname(host), err); 1247 mmc_hostname(host), err);
1248 1248
1249 return err; 1249 return err;
diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc/core/mmc_ops.c
index 7aa13d01a835..4e11d56b3f70 100644
--- a/drivers/mmc/core/mmc_ops.c
+++ b/drivers/mmc/core/mmc_ops.c
@@ -414,7 +414,7 @@ int mmc_switch(struct mmc_card *card, u8 set, u8 index, u8 value,
414 return -EBADMSG; 414 return -EBADMSG;
415 } else { 415 } else {
416 if (status & 0xFDFFA000) 416 if (status & 0xFDFFA000)
417 printk(KERN_WARNING "%s: unexpected status %#x after " 417 pr_warning("%s: unexpected status %#x after "
418 "switch", mmc_hostname(card->host), status); 418 "switch", mmc_hostname(card->host), status);
419 if (status & R1_SWITCH_ERROR) 419 if (status & R1_SWITCH_ERROR)
420 return -EBADMSG; 420 return -EBADMSG;
@@ -476,7 +476,7 @@ mmc_send_bus_test(struct mmc_card *card, struct mmc_host *host, u8 opcode,
476 else if (len == 4) 476 else if (len == 4)
477 test_buf = testdata_4bit; 477 test_buf = testdata_4bit;
478 else { 478 else {
479 printk(KERN_ERR "%s: Invalid bus_width %d\n", 479 pr_err("%s: Invalid bus_width %d\n",
480 mmc_hostname(host), len); 480 mmc_hostname(host), len);
481 kfree(data_buf); 481 kfree(data_buf);
482 return -EINVAL; 482 return -EINVAL;
diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c
index 342b18c4afcb..25b937294130 100644
--- a/drivers/mmc/core/sd.c
+++ b/drivers/mmc/core/sd.c
@@ -163,7 +163,7 @@ static int mmc_decode_csd(struct mmc_card *card)
163 csd->erase_size = 1; 163 csd->erase_size = 1;
164 break; 164 break;
165 default: 165 default:
166 printk(KERN_ERR "%s: unrecognised CSD structure version %d\n", 166 pr_err("%s: unrecognised CSD structure version %d\n",
167 mmc_hostname(card->host), csd_struct); 167 mmc_hostname(card->host), csd_struct);
168 return -EINVAL; 168 return -EINVAL;
169 } 169 }
@@ -187,7 +187,7 @@ static int mmc_decode_scr(struct mmc_card *card)
187 187
188 scr_struct = UNSTUFF_BITS(resp, 60, 4); 188 scr_struct = UNSTUFF_BITS(resp, 60, 4);
189 if (scr_struct != 0) { 189 if (scr_struct != 0) {
190 printk(KERN_ERR "%s: unrecognised SCR structure version %d\n", 190 pr_err("%s: unrecognised SCR structure version %d\n",
191 mmc_hostname(card->host), scr_struct); 191 mmc_hostname(card->host), scr_struct);
192 return -EINVAL; 192 return -EINVAL;
193 } 193 }
@@ -218,7 +218,7 @@ static int mmc_read_ssr(struct mmc_card *card)
218 u32 *ssr; 218 u32 *ssr;
219 219
220 if (!(card->csd.cmdclass & CCC_APP_SPEC)) { 220 if (!(card->csd.cmdclass & CCC_APP_SPEC)) {
221 printk(KERN_WARNING "%s: card lacks mandatory SD Status " 221 pr_warning("%s: card lacks mandatory SD Status "
222 "function.\n", mmc_hostname(card->host)); 222 "function.\n", mmc_hostname(card->host));
223 return 0; 223 return 0;
224 } 224 }
@@ -229,7 +229,7 @@ static int mmc_read_ssr(struct mmc_card *card)
229 229
230 err = mmc_app_sd_status(card, ssr); 230 err = mmc_app_sd_status(card, ssr);
231 if (err) { 231 if (err) {
232 printk(KERN_WARNING "%s: problem reading SD Status " 232 pr_warning("%s: problem reading SD Status "
233 "register.\n", mmc_hostname(card->host)); 233 "register.\n", mmc_hostname(card->host));
234 err = 0; 234 err = 0;
235 goto out; 235 goto out;
@@ -253,7 +253,7 @@ static int mmc_read_ssr(struct mmc_card *card)
253 card->ssr.erase_offset = eo * 1000; 253 card->ssr.erase_offset = eo * 1000;
254 } 254 }
255 } else { 255 } else {
256 printk(KERN_WARNING "%s: SD Status: Invalid Allocation Unit " 256 pr_warning("%s: SD Status: Invalid Allocation Unit "
257 "size.\n", mmc_hostname(card->host)); 257 "size.\n", mmc_hostname(card->host));
258 } 258 }
259out: 259out:
@@ -273,7 +273,7 @@ static int mmc_read_switch(struct mmc_card *card)
273 return 0; 273 return 0;
274 274
275 if (!(card->csd.cmdclass & CCC_SWITCH)) { 275 if (!(card->csd.cmdclass & CCC_SWITCH)) {
276 printk(KERN_WARNING "%s: card lacks mandatory switch " 276 pr_warning("%s: card lacks mandatory switch "
277 "function, performance might suffer.\n", 277 "function, performance might suffer.\n",
278 mmc_hostname(card->host)); 278 mmc_hostname(card->host));
279 return 0; 279 return 0;
@@ -283,7 +283,7 @@ static int mmc_read_switch(struct mmc_card *card)
283 283
284 status = kmalloc(64, GFP_KERNEL); 284 status = kmalloc(64, GFP_KERNEL);
285 if (!status) { 285 if (!status) {
286 printk(KERN_ERR "%s: could not allocate a buffer for " 286 pr_err("%s: could not allocate a buffer for "
287 "switch capabilities.\n", 287 "switch capabilities.\n",
288 mmc_hostname(card->host)); 288 mmc_hostname(card->host));
289 return -ENOMEM; 289 return -ENOMEM;
@@ -299,7 +299,7 @@ static int mmc_read_switch(struct mmc_card *card)
299 if (err != -EINVAL && err != -ENOSYS && err != -EFAULT) 299 if (err != -EINVAL && err != -ENOSYS && err != -EFAULT)
300 goto out; 300 goto out;
301 301
302 printk(KERN_WARNING "%s: problem reading Bus Speed modes.\n", 302 pr_warning("%s: problem reading Bus Speed modes.\n",
303 mmc_hostname(card->host)); 303 mmc_hostname(card->host));
304 err = 0; 304 err = 0;
305 305
@@ -319,7 +319,7 @@ static int mmc_read_switch(struct mmc_card *card)
319 if (err != -EINVAL && err != -ENOSYS && err != -EFAULT) 319 if (err != -EINVAL && err != -ENOSYS && err != -EFAULT)
320 goto out; 320 goto out;
321 321
322 printk(KERN_WARNING "%s: problem reading " 322 pr_warning("%s: problem reading "
323 "Driver Strength.\n", 323 "Driver Strength.\n",
324 mmc_hostname(card->host)); 324 mmc_hostname(card->host));
325 err = 0; 325 err = 0;
@@ -339,7 +339,7 @@ static int mmc_read_switch(struct mmc_card *card)
339 if (err != -EINVAL && err != -ENOSYS && err != -EFAULT) 339 if (err != -EINVAL && err != -ENOSYS && err != -EFAULT)
340 goto out; 340 goto out;
341 341
342 printk(KERN_WARNING "%s: problem reading " 342 pr_warning("%s: problem reading "
343 "Current Limit.\n", 343 "Current Limit.\n",
344 mmc_hostname(card->host)); 344 mmc_hostname(card->host));
345 err = 0; 345 err = 0;
@@ -383,7 +383,7 @@ int mmc_sd_switch_hs(struct mmc_card *card)
383 383
384 status = kmalloc(64, GFP_KERNEL); 384 status = kmalloc(64, GFP_KERNEL);
385 if (!status) { 385 if (!status) {
386 printk(KERN_ERR "%s: could not allocate a buffer for " 386 pr_err("%s: could not allocate a buffer for "
387 "switch capabilities.\n", mmc_hostname(card->host)); 387 "switch capabilities.\n", mmc_hostname(card->host));
388 return -ENOMEM; 388 return -ENOMEM;
389 } 389 }
@@ -393,7 +393,7 @@ int mmc_sd_switch_hs(struct mmc_card *card)
393 goto out; 393 goto out;
394 394
395 if ((status[16] & 0xF) != 1) { 395 if ((status[16] & 0xF) != 1) {
396 printk(KERN_WARNING "%s: Problem switching card " 396 pr_warning("%s: Problem switching card "
397 "into high-speed mode!\n", 397 "into high-speed mode!\n",
398 mmc_hostname(card->host)); 398 mmc_hostname(card->host));
399 err = 0; 399 err = 0;
@@ -459,7 +459,7 @@ static int sd_select_driver_type(struct mmc_card *card, u8 *status)
459 return err; 459 return err;
460 460
461 if ((status[15] & 0xF) != drive_strength) { 461 if ((status[15] & 0xF) != drive_strength) {
462 printk(KERN_WARNING "%s: Problem setting drive strength!\n", 462 pr_warning("%s: Problem setting drive strength!\n",
463 mmc_hostname(card->host)); 463 mmc_hostname(card->host));
464 return 0; 464 return 0;
465 } 465 }
@@ -538,7 +538,7 @@ static int sd_set_bus_speed_mode(struct mmc_card *card, u8 *status)
538 return err; 538 return err;
539 539
540 if ((status[16] & 0xF) != card->sd_bus_speed) 540 if ((status[16] & 0xF) != card->sd_bus_speed)
541 printk(KERN_WARNING "%s: Problem setting bus speed mode!\n", 541 pr_warning("%s: Problem setting bus speed mode!\n",
542 mmc_hostname(card->host)); 542 mmc_hostname(card->host));
543 else { 543 else {
544 mmc_set_timing(card->host, timing); 544 mmc_set_timing(card->host, timing);
@@ -600,7 +600,7 @@ static int sd_set_current_limit(struct mmc_card *card, u8 *status)
600 return err; 600 return err;
601 601
602 if (((status[15] >> 4) & 0x0F) != current_limit) 602 if (((status[15] >> 4) & 0x0F) != current_limit)
603 printk(KERN_WARNING "%s: Problem setting current limit!\n", 603 pr_warning("%s: Problem setting current limit!\n",
604 mmc_hostname(card->host)); 604 mmc_hostname(card->host));
605 605
606 return 0; 606 return 0;
@@ -622,7 +622,7 @@ static int mmc_sd_init_uhs_card(struct mmc_card *card)
622 622
623 status = kmalloc(64, GFP_KERNEL); 623 status = kmalloc(64, GFP_KERNEL);
624 if (!status) { 624 if (!status) {
625 printk(KERN_ERR "%s: could not allocate a buffer for " 625 pr_err("%s: could not allocate a buffer for "
626 "switch capabilities.\n", mmc_hostname(card->host)); 626 "switch capabilities.\n", mmc_hostname(card->host));
627 return -ENOMEM; 627 return -ENOMEM;
628 } 628 }
@@ -852,7 +852,7 @@ int mmc_sd_setup_card(struct mmc_host *host, struct mmc_card *card,
852 ro = host->ops->get_ro(host); 852 ro = host->ops->get_ro(host);
853 853
854 if (ro < 0) { 854 if (ro < 0) {
855 printk(KERN_WARNING "%s: host does not " 855 pr_warning("%s: host does not "
856 "support reading read-only " 856 "support reading read-only "
857 "switch. assuming write-enable.\n", 857 "switch. assuming write-enable.\n",
858 mmc_hostname(host)); 858 mmc_hostname(host));
@@ -1166,7 +1166,7 @@ int mmc_attach_sd(struct mmc_host *host)
1166 * support. 1166 * support.
1167 */ 1167 */
1168 if (ocr & 0x7F) { 1168 if (ocr & 0x7F) {
1169 printk(KERN_WARNING "%s: card claims to support voltages " 1169 pr_warning("%s: card claims to support voltages "
1170 "below the defined range. These will be ignored.\n", 1170 "below the defined range. These will be ignored.\n",
1171 mmc_hostname(host)); 1171 mmc_hostname(host));
1172 ocr &= ~0x7F; 1172 ocr &= ~0x7F;
@@ -1174,7 +1174,7 @@ int mmc_attach_sd(struct mmc_host *host)
1174 1174
1175 if ((ocr & MMC_VDD_165_195) && 1175 if ((ocr & MMC_VDD_165_195) &&
1176 !(host->ocr_avail_sd & MMC_VDD_165_195)) { 1176 !(host->ocr_avail_sd & MMC_VDD_165_195)) {
1177 printk(KERN_WARNING "%s: SD card claims to support the " 1177 pr_warning("%s: SD card claims to support the "
1178 "incompletely defined 'low voltage range'. This " 1178 "incompletely defined 'low voltage range'. This "
1179 "will be ignored.\n", mmc_hostname(host)); 1179 "will be ignored.\n", mmc_hostname(host));
1180 ocr &= ~MMC_VDD_165_195; 1180 ocr &= ~MMC_VDD_165_195;
@@ -1213,7 +1213,7 @@ remove_card:
1213err: 1213err:
1214 mmc_detach_bus(host); 1214 mmc_detach_bus(host);
1215 1215
1216 printk(KERN_ERR "%s: error %d whilst initialising SD card\n", 1216 pr_err("%s: error %d whilst initialising SD card\n",
1217 mmc_hostname(host), err); 1217 mmc_hostname(host), err);
1218 1218
1219 return err; 1219 return err;
diff --git a/drivers/mmc/core/sdio.c b/drivers/mmc/core/sdio.c
index 698d813cff3b..925bab052b07 100644
--- a/drivers/mmc/core/sdio.c
+++ b/drivers/mmc/core/sdio.c
@@ -112,7 +112,7 @@ static int sdio_read_cccr(struct mmc_card *card)
112 cccr_vsn = data & 0x0f; 112 cccr_vsn = data & 0x0f;
113 113
114 if (cccr_vsn > SDIO_CCCR_REV_1_20) { 114 if (cccr_vsn > SDIO_CCCR_REV_1_20) {
115 printk(KERN_ERR "%s: unrecognised CCCR structure version %d\n", 115 pr_err("%s: unrecognised CCCR structure version %d\n",
116 mmc_hostname(card->host), cccr_vsn); 116 mmc_hostname(card->host), cccr_vsn);
117 return -EINVAL; 117 return -EINVAL;
118 } 118 }
@@ -777,7 +777,7 @@ int mmc_attach_sdio(struct mmc_host *host)
777 * support. 777 * support.
778 */ 778 */
779 if (ocr & 0x7F) { 779 if (ocr & 0x7F) {
780 printk(KERN_WARNING "%s: card claims to support voltages " 780 pr_warning("%s: card claims to support voltages "
781 "below the defined range. These will be ignored.\n", 781 "below the defined range. These will be ignored.\n",
782 mmc_hostname(host)); 782 mmc_hostname(host));
783 ocr &= ~0x7F; 783 ocr &= ~0x7F;
@@ -874,7 +874,7 @@ remove:
874err: 874err:
875 mmc_detach_bus(host); 875 mmc_detach_bus(host);
876 876
877 printk(KERN_ERR "%s: error %d whilst initialising SDIO card\n", 877 pr_err("%s: error %d whilst initialising SDIO card\n",
878 mmc_hostname(host), err); 878 mmc_hostname(host), err);
879 879
880 return err; 880 return err;
diff --git a/drivers/mmc/core/sdio_bus.c b/drivers/mmc/core/sdio_bus.c
index e4e6822d09e3..c643b2f78bf1 100644
--- a/drivers/mmc/core/sdio_bus.c
+++ b/drivers/mmc/core/sdio_bus.c
@@ -173,7 +173,7 @@ static int sdio_bus_remove(struct device *dev)
173 drv->remove(func); 173 drv->remove(func);
174 174
175 if (func->irq_handler) { 175 if (func->irq_handler) {
176 printk(KERN_WARNING "WARNING: driver %s did not remove " 176 pr_warning("WARNING: driver %s did not remove "
177 "its interrupt handler!\n", drv->name); 177 "its interrupt handler!\n", drv->name);
178 sdio_claim_host(func); 178 sdio_claim_host(func);
179 sdio_release_irq(func); 179 sdio_release_irq(func);
diff --git a/drivers/mmc/core/sdio_cis.c b/drivers/mmc/core/sdio_cis.c
index 541bdb89e0c5..f1c7ed8f4d85 100644
--- a/drivers/mmc/core/sdio_cis.c
+++ b/drivers/mmc/core/sdio_cis.c
@@ -132,7 +132,7 @@ static int cis_tpl_parse(struct mmc_card *card, struct sdio_func *func,
132 ret = -EINVAL; 132 ret = -EINVAL;
133 } 133 }
134 if (ret && ret != -EILSEQ && ret != -ENOENT) { 134 if (ret && ret != -EILSEQ && ret != -ENOENT) {
135 printk(KERN_ERR "%s: bad %s tuple 0x%02x (%u bytes)\n", 135 pr_err("%s: bad %s tuple 0x%02x (%u bytes)\n",
136 mmc_hostname(card->host), tpl_descr, code, size); 136 mmc_hostname(card->host), tpl_descr, code, size);
137 } 137 }
138 } else { 138 } else {
@@ -313,7 +313,7 @@ static int sdio_read_cis(struct mmc_card *card, struct sdio_func *func)
313 313
314 if (ret == -ENOENT) { 314 if (ret == -ENOENT) {
315 /* warn about unknown tuples */ 315 /* warn about unknown tuples */
316 printk(KERN_WARNING "%s: queuing unknown" 316 pr_warning("%s: queuing unknown"
317 " CIS tuple 0x%02x (%u bytes)\n", 317 " CIS tuple 0x%02x (%u bytes)\n",
318 mmc_hostname(card->host), 318 mmc_hostname(card->host),
319 tpl_code, tpl_link); 319 tpl_code, tpl_link);
diff --git a/drivers/mmc/core/sdio_irq.c b/drivers/mmc/core/sdio_irq.c
index 03ead028d2ce..b644dd59c16e 100644
--- a/drivers/mmc/core/sdio_irq.c
+++ b/drivers/mmc/core/sdio_irq.c
@@ -45,7 +45,7 @@ static int process_sdio_pending_irqs(struct mmc_card *card)
45 45
46 ret = mmc_io_rw_direct(card, 0, 0, SDIO_CCCR_INTx, 0, &pending); 46 ret = mmc_io_rw_direct(card, 0, 0, SDIO_CCCR_INTx, 0, &pending);
47 if (ret) { 47 if (ret) {
48 printk(KERN_DEBUG "%s: error %d reading SDIO_CCCR_INTx\n", 48 pr_debug("%s: error %d reading SDIO_CCCR_INTx\n",
49 mmc_card_id(card), ret); 49 mmc_card_id(card), ret);
50 return ret; 50 return ret;
51 } 51 }
@@ -55,7 +55,7 @@ static int process_sdio_pending_irqs(struct mmc_card *card)
55 if (pending & (1 << i)) { 55 if (pending & (1 << i)) {
56 func = card->sdio_func[i - 1]; 56 func = card->sdio_func[i - 1];
57 if (!func) { 57 if (!func) {
58 printk(KERN_WARNING "%s: pending IRQ for " 58 pr_warning("%s: pending IRQ for "
59 "non-existent function\n", 59 "non-existent function\n",
60 mmc_card_id(card)); 60 mmc_card_id(card));
61 ret = -EINVAL; 61 ret = -EINVAL;
@@ -63,7 +63,7 @@ static int process_sdio_pending_irqs(struct mmc_card *card)
63 func->irq_handler(func); 63 func->irq_handler(func);
64 count++; 64 count++;
65 } else { 65 } else {
66 printk(KERN_WARNING "%s: pending IRQ with no handler\n", 66 pr_warning("%s: pending IRQ with no handler\n",
67 sdio_func_id(func)); 67 sdio_func_id(func));
68 ret = -EINVAL; 68 ret = -EINVAL;
69 } 69 }