aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-04-15 18:51:58 -0400
committerJeff Garzik <jgarzik@pobox.com>2011-07-23 17:57:36 -0400
commita44fec1fce5d5d14cc3ac4545b8da346394de666 (patch)
treefa3d16a4c8f1a6a7e9af867f16f7201a5b5442f9 /drivers/ata
parent02f8c6aee8df3cdc935e9bdd4f2d020306035dbe (diff)
ata: Convert dev_printk(KERN_<LEVEL> to dev_<level>(
Saves a bit of text as the call takes fewer args. Coalesce a few formats. Convert a few bare printks to pr_cont. $ size drivers/ata/built-in.o* text data bss dec hex filename 558429 73893 117864 750186 b726a drivers/ata/built-in.o.allyesconfig.new 559574 73893 117888 751355 b76fb drivers/ata/built-in.o.allyesconfig.old 149567 14689 4220 168476 2921c drivers/ata/built-in.o.defconfig.new 149851 14689 4220 168760 29338 drivers/ata/built-in.o.defconfig.old Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/acard-ahci.c23
-rw-r--r--drivers/ata/ahci.c44
-rw-r--r--drivers/ata/ata_piix.c39
-rw-r--r--drivers/ata/libahci.c71
-rw-r--r--drivers/ata/libata-core.c13
-rw-r--r--drivers/ata/libata-sff.c20
-rw-r--r--drivers/ata/pata_amd.c2
-rw-r--r--drivers/ata/pata_atp867x.c11
-rw-r--r--drivers/ata/pata_cs5520.c3
-rw-r--r--drivers/ata/pata_ixp4xx_cf.c2
-rw-r--r--drivers/ata/pata_macio.c5
-rw-r--r--drivers/ata/pata_ns87410.c2
-rw-r--r--drivers/ata/pata_pdc2027x.c2
-rw-r--r--drivers/ata/pata_sl82c105.c6
-rw-r--r--drivers/ata/pdc_adma.c6
-rw-r--r--drivers/ata/sata_fsl.c14
-rw-r--r--drivers/ata/sata_inic162x.c12
-rw-r--r--drivers/ata/sata_mv.c49
-rw-r--r--drivers/ata/sata_nv.c6
-rw-r--r--drivers/ata/sata_promise.c2
-rw-r--r--drivers/ata/sata_qstor.c9
-rw-r--r--drivers/ata/sata_sil.c9
-rw-r--r--drivers/ata/sata_sil24.c22
-rw-r--r--drivers/ata/sata_sis.c24
-rw-r--r--drivers/ata/sata_uli.c2
-rw-r--r--drivers/ata/sata_via.c16
-rw-r--r--drivers/ata/sata_vsc.c5
27 files changed, 189 insertions, 230 deletions
diff --git a/drivers/ata/acard-ahci.c b/drivers/ata/acard-ahci.c
index ae22be4157b5..e52d90ad1fe9 100644
--- a/drivers/ata/acard-ahci.c
+++ b/drivers/ata/acard-ahci.c
@@ -135,8 +135,8 @@ static int acard_ahci_pci_device_suspend(struct pci_dev *pdev, pm_message_t mesg
135 135
136 if (mesg.event & PM_EVENT_SUSPEND && 136 if (mesg.event & PM_EVENT_SUSPEND &&
137 hpriv->flags & AHCI_HFLAG_NO_SUSPEND) { 137 hpriv->flags & AHCI_HFLAG_NO_SUSPEND) {
138 dev_printk(KERN_ERR, &pdev->dev, 138 dev_err(&pdev->dev,
139 "BIOS update required for suspend/resume\n"); 139 "BIOS update required for suspend/resume\n");
140 return -EIO; 140 return -EIO;
141 } 141 }
142 142
@@ -187,7 +187,7 @@ static int acard_ahci_configure_dma_masks(struct pci_dev *pdev, int using_dac)
187 if (rc) { 187 if (rc) {
188 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 188 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
189 if (rc) { 189 if (rc) {
190 dev_printk(KERN_ERR, &pdev->dev, 190 dev_err(&pdev->dev,
191 "64-bit DMA enable failed\n"); 191 "64-bit DMA enable failed\n");
192 return rc; 192 return rc;
193 } 193 }
@@ -195,14 +195,13 @@ static int acard_ahci_configure_dma_masks(struct pci_dev *pdev, int using_dac)
195 } else { 195 } else {
196 rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 196 rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
197 if (rc) { 197 if (rc) {
198 dev_printk(KERN_ERR, &pdev->dev, 198 dev_err(&pdev->dev, "32-bit DMA enable failed\n");
199 "32-bit DMA enable failed\n");
200 return rc; 199 return rc;
201 } 200 }
202 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 201 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
203 if (rc) { 202 if (rc) {
204 dev_printk(KERN_ERR, &pdev->dev, 203 dev_err(&pdev->dev,
205 "32-bit consistent DMA enable failed\n"); 204 "32-bit consistent DMA enable failed\n");
206 return rc; 205 return rc;
207 } 206 }
208 } 207 }
@@ -343,14 +342,12 @@ static int acard_ahci_port_start(struct ata_port *ap)
343 if (cmd & PORT_CMD_FBSCP) 342 if (cmd & PORT_CMD_FBSCP)
344 pp->fbs_supported = true; 343 pp->fbs_supported = true;
345 else if (hpriv->flags & AHCI_HFLAG_YES_FBS) { 344 else if (hpriv->flags & AHCI_HFLAG_YES_FBS) {
346 dev_printk(KERN_INFO, dev, 345 dev_info(dev, "port %d can do FBS, forcing FBSCP\n",
347 "port %d can do FBS, forcing FBSCP\n", 346 ap->port_no);
348 ap->port_no);
349 pp->fbs_supported = true; 347 pp->fbs_supported = true;
350 } else 348 } else
351 dev_printk(KERN_WARNING, dev, 349 dev_warn(dev, "port %d is not capable of FBS\n",
352 "port %d is not capable of FBS\n", 350 ap->port_no);
353 ap->port_no);
354 } 351 }
355 352
356 if (pp->fbs_supported) { 353 if (pp->fbs_supported) {
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index 71afe0371311..dda85116343e 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -629,8 +629,8 @@ static int ahci_pci_device_suspend(struct pci_dev *pdev, pm_message_t mesg)
629 629
630 if (mesg.event & PM_EVENT_SUSPEND && 630 if (mesg.event & PM_EVENT_SUSPEND &&
631 hpriv->flags & AHCI_HFLAG_NO_SUSPEND) { 631 hpriv->flags & AHCI_HFLAG_NO_SUSPEND) {
632 dev_printk(KERN_ERR, &pdev->dev, 632 dev_err(&pdev->dev,
633 "BIOS update required for suspend/resume\n"); 633 "BIOS update required for suspend/resume\n");
634 return -EIO; 634 return -EIO;
635 } 635 }
636 636
@@ -681,22 +681,21 @@ static int ahci_configure_dma_masks(struct pci_dev *pdev, int using_dac)
681 if (rc) { 681 if (rc) {
682 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 682 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
683 if (rc) { 683 if (rc) {
684 dev_printk(KERN_ERR, &pdev->dev, 684 dev_err(&pdev->dev,
685 "64-bit DMA enable failed\n"); 685 "64-bit DMA enable failed\n");
686 return rc; 686 return rc;
687 } 687 }
688 } 688 }
689 } else { 689 } else {
690 rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 690 rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
691 if (rc) { 691 if (rc) {
692 dev_printk(KERN_ERR, &pdev->dev, 692 dev_err(&pdev->dev, "32-bit DMA enable failed\n");
693 "32-bit DMA enable failed\n");
694 return rc; 693 return rc;
695 } 694 }
696 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 695 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
697 if (rc) { 696 if (rc) {
698 dev_printk(KERN_ERR, &pdev->dev, 697 dev_err(&pdev->dev,
699 "32-bit consistent DMA enable failed\n"); 698 "32-bit consistent DMA enable failed\n");
700 return rc; 699 return rc;
701 } 700 }
702 } 701 }
@@ -759,8 +758,8 @@ static void ahci_p5wdh_workaround(struct ata_host *host)
759 dmi_check_system(sysids)) { 758 dmi_check_system(sysids)) {
760 struct ata_port *ap = host->ports[1]; 759 struct ata_port *ap = host->ports[1];
761 760
762 dev_printk(KERN_INFO, &pdev->dev, "enabling ASUS P5W DH " 761 dev_info(&pdev->dev,
763 "Deluxe on-board SIMG4726 workaround\n"); 762 "enabling ASUS P5W DH Deluxe on-board SIMG4726 workaround\n");
764 763
765 ap->ops = &ahci_p5wdh_ops; 764 ap->ops = &ahci_p5wdh_ops;
766 ap->link.flags |= ATA_LFLAG_NO_SRST | ATA_LFLAG_ASSUME_ATA; 765 ap->link.flags |= ATA_LFLAG_NO_SRST | ATA_LFLAG_ASSUME_ATA;
@@ -831,14 +830,14 @@ static bool ahci_sb600_enable_64bit(struct pci_dev *pdev)
831 if (strcmp(buf, match->driver_data) >= 0) 830 if (strcmp(buf, match->driver_data) >= 0)
832 goto enable_64bit; 831 goto enable_64bit;
833 else { 832 else {
834 dev_printk(KERN_WARNING, &pdev->dev, "%s: BIOS too old, " 833 dev_warn(&pdev->dev,
835 "forcing 32bit DMA, update BIOS\n", match->ident); 834 "%s: BIOS too old, forcing 32bit DMA, update BIOS\n",
835 match->ident);
836 return false; 836 return false;
837 } 837 }
838 838
839enable_64bit: 839enable_64bit:
840 dev_printk(KERN_WARNING, &pdev->dev, "%s: enabling 64bit DMA\n", 840 dev_warn(&pdev->dev, "%s: enabling 64bit DMA\n", match->ident);
841 match->ident);
842 return true; 841 return true;
843} 842}
844 843
@@ -1041,9 +1040,8 @@ static void ahci_gtf_filter_workaround(struct ata_host *host)
1041 return; 1040 return;
1042 1041
1043 filter = (unsigned long)dmi->driver_data; 1042 filter = (unsigned long)dmi->driver_data;
1044 dev_printk(KERN_INFO, host->dev, 1043 dev_info(host->dev, "applying extra ACPI _GTF filter 0x%x for %s\n",
1045 "applying extra ACPI _GTF filter 0x%x for %s\n", 1044 filter, dmi->ident);
1046 filter, dmi->ident);
1047 1045
1048 for (i = 0; i < host->n_ports; i++) { 1046 for (i = 0; i < host->n_ports; i++) {
1049 struct ata_port *ap = host->ports[i]; 1047 struct ata_port *ap = host->ports[i];
@@ -1099,8 +1097,8 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
1099 * that for SAS drives they're out of luck. 1097 * that for SAS drives they're out of luck.
1100 */ 1098 */
1101 if (pdev->vendor == PCI_VENDOR_ID_PROMISE) 1099 if (pdev->vendor == PCI_VENDOR_ID_PROMISE)
1102 dev_printk(KERN_INFO, &pdev->dev, "PDC42819 " 1100 dev_info(&pdev->dev,
1103 "can only drive SATA devices with this driver\n"); 1101 "PDC42819 can only drive SATA devices with this driver\n");
1104 1102
1105 /* acquire resources */ 1103 /* acquire resources */
1106 rc = pcim_enable_device(pdev); 1104 rc = pcim_enable_device(pdev);
@@ -1126,8 +1124,8 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
1126 */ 1124 */
1127 pci_read_config_byte(pdev, ICH_MAP, &map); 1125 pci_read_config_byte(pdev, ICH_MAP, &map);
1128 if (map & 0x3) { 1126 if (map & 0x3) {
1129 dev_printk(KERN_INFO, &pdev->dev, "controller is in " 1127 dev_info(&pdev->dev,
1130 "combined mode, can't enable AHCI mode\n"); 1128 "controller is in combined mode, can't enable AHCI mode\n");
1131 return -ENODEV; 1129 return -ENODEV;
1132 } 1130 }
1133 } 1131 }
@@ -1184,8 +1182,8 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
1184 1182
1185 if (ahci_broken_suspend(pdev)) { 1183 if (ahci_broken_suspend(pdev)) {
1186 hpriv->flags |= AHCI_HFLAG_NO_SUSPEND; 1184 hpriv->flags |= AHCI_HFLAG_NO_SUSPEND;
1187 dev_printk(KERN_WARNING, &pdev->dev, 1185 dev_warn(&pdev->dev,
1188 "BIOS update required for suspend/resume\n"); 1186 "BIOS update required for suspend/resume\n");
1189 } 1187 }
1190 1188
1191 if (ahci_broken_online(pdev)) { 1189 if (ahci_broken_online(pdev)) {
diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c
index 6f6e7718b05c..9842faac097f 100644
--- a/drivers/ata/ata_piix.c
+++ b/drivers/ata/ata_piix.c
@@ -1225,8 +1225,9 @@ static int piix_pci_device_resume(struct pci_dev *pdev)
1225 */ 1225 */
1226 rc = pci_reenable_device(pdev); 1226 rc = pci_reenable_device(pdev);
1227 if (rc) 1227 if (rc)
1228 dev_printk(KERN_ERR, &pdev->dev, "failed to enable " 1228 dev_err(&pdev->dev,
1229 "device after resume (%d)\n", rc); 1229 "failed to enable device after resume (%d)\n",
1230 rc);
1230 } else 1231 } else
1231 rc = ata_pci_device_do_resume(pdev); 1232 rc = ata_pci_device_do_resume(pdev);
1232 1233
@@ -1303,9 +1304,11 @@ static int __devinit piix_check_450nx_errata(struct pci_dev *ata_dev)
1303 no_piix_dma = 2; 1304 no_piix_dma = 2;
1304 } 1305 }
1305 if (no_piix_dma) 1306 if (no_piix_dma)
1306 dev_printk(KERN_WARNING, &ata_dev->dev, "450NX errata present, disabling IDE DMA.\n"); 1307 dev_warn(&ata_dev->dev,
1307 if (no_piix_dma == 2) 1308 "450NX errata present, disabling IDE DMA%s\n",
1308 dev_printk(KERN_WARNING, &ata_dev->dev, "A BIOS update may resolve this.\n"); 1309 no_piix_dma == 2 ? " - a BIOS update may resolve this"
1310 : "");
1311
1309 return no_piix_dma; 1312 return no_piix_dma;
1310} 1313}
1311 1314
@@ -1338,37 +1341,36 @@ static const int *__devinit piix_init_sata_map(struct pci_dev *pdev,
1338 1341
1339 map = map_db->map[map_value & map_db->mask]; 1342 map = map_db->map[map_value & map_db->mask];
1340 1343
1341 dev_printk(KERN_INFO, &pdev->dev, "MAP ["); 1344 dev_info(&pdev->dev, "MAP [");
1342 for (i = 0; i < 4; i++) { 1345 for (i = 0; i < 4; i++) {
1343 switch (map[i]) { 1346 switch (map[i]) {
1344 case RV: 1347 case RV:
1345 invalid_map = 1; 1348 invalid_map = 1;
1346 printk(" XX"); 1349 pr_cont(" XX");
1347 break; 1350 break;
1348 1351
1349 case NA: 1352 case NA:
1350 printk(" --"); 1353 pr_cont(" --");
1351 break; 1354 break;
1352 1355
1353 case IDE: 1356 case IDE:
1354 WARN_ON((i & 1) || map[i + 1] != IDE); 1357 WARN_ON((i & 1) || map[i + 1] != IDE);
1355 pinfo[i / 2] = piix_port_info[ich_pata_100]; 1358 pinfo[i / 2] = piix_port_info[ich_pata_100];
1356 i++; 1359 i++;
1357 printk(" IDE IDE"); 1360 pr_cont(" IDE IDE");
1358 break; 1361 break;
1359 1362
1360 default: 1363 default:
1361 printk(" P%d", map[i]); 1364 pr_cont(" P%d", map[i]);
1362 if (i & 1) 1365 if (i & 1)
1363 pinfo[i / 2].flags |= ATA_FLAG_SLAVE_POSS; 1366 pinfo[i / 2].flags |= ATA_FLAG_SLAVE_POSS;
1364 break; 1367 break;
1365 } 1368 }
1366 } 1369 }
1367 printk(" ]\n"); 1370 pr_cont(" ]\n");
1368 1371
1369 if (invalid_map) 1372 if (invalid_map)
1370 dev_printk(KERN_ERR, &pdev->dev, 1373 dev_err(&pdev->dev, "invalid MAP value %u\n", map_value);
1371 "invalid MAP value %u\n", map_value);
1372 1374
1373 return map; 1375 return map;
1374} 1376}
@@ -1398,8 +1400,8 @@ static bool piix_no_sidpr(struct ata_host *host)
1398 if (pdev->vendor == PCI_VENDOR_ID_INTEL && pdev->device == 0x2920 && 1400 if (pdev->vendor == PCI_VENDOR_ID_INTEL && pdev->device == 0x2920 &&
1399 pdev->subsystem_vendor == PCI_VENDOR_ID_SAMSUNG && 1401 pdev->subsystem_vendor == PCI_VENDOR_ID_SAMSUNG &&
1400 pdev->subsystem_device == 0xb049) { 1402 pdev->subsystem_device == 0xb049) {
1401 dev_printk(KERN_WARNING, host->dev, 1403 dev_warn(host->dev,
1402 "Samsung DB-P70 detected, disabling SIDPR\n"); 1404 "Samsung DB-P70 detected, disabling SIDPR\n");
1403 return true; 1405 return true;
1404 } 1406 }
1405 1407
@@ -1451,8 +1453,8 @@ static int __devinit piix_init_sidpr(struct ata_host *host)
1451 piix_sidpr_scr_read(link0, SCR_CONTROL, &scontrol); 1453 piix_sidpr_scr_read(link0, SCR_CONTROL, &scontrol);
1452 1454
1453 if ((scontrol & 0xf00) != 0x300) { 1455 if ((scontrol & 0xf00) != 0x300) {
1454 dev_printk(KERN_INFO, host->dev, "SCR access via " 1456 dev_info(host->dev,
1455 "SIDPR is available but doesn't work\n"); 1457 "SCR access via SIDPR is available but doesn't work\n");
1456 return 0; 1458 return 0;
1457 } 1459 }
1458 } 1460 }
@@ -1501,8 +1503,7 @@ static void piix_iocfg_bit18_quirk(struct ata_host *host)
1501 * affected systems. 1503 * affected systems.
1502 */ 1504 */
1503 if (hpriv->saved_iocfg & (1 << 18)) { 1505 if (hpriv->saved_iocfg & (1 << 18)) {
1504 dev_printk(KERN_INFO, &pdev->dev, 1506 dev_info(&pdev->dev, "applying IOCFG bit18 quirk\n");
1505 "applying IOCFG bit18 quirk\n");
1506 pci_write_config_dword(pdev, PIIX_IOCFG, 1507 pci_write_config_dword(pdev, PIIX_IOCFG,
1507 hpriv->saved_iocfg & ~(1 << 18)); 1508 hpriv->saved_iocfg & ~(1 << 18));
1508 } 1509 }
diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c
index 41223c7f0206..39761f50a3e2 100644
--- a/drivers/ata/libahci.c
+++ b/drivers/ata/libahci.c
@@ -410,51 +410,46 @@ void ahci_save_initial_config(struct device *dev,
410 410
411 /* some chips have errata preventing 64bit use */ 411 /* some chips have errata preventing 64bit use */
412 if ((cap & HOST_CAP_64) && (hpriv->flags & AHCI_HFLAG_32BIT_ONLY)) { 412 if ((cap & HOST_CAP_64) && (hpriv->flags & AHCI_HFLAG_32BIT_ONLY)) {
413 dev_printk(KERN_INFO, dev, 413 dev_info(dev, "controller can't do 64bit DMA, forcing 32bit\n");
414 "controller can't do 64bit DMA, forcing 32bit\n");
415 cap &= ~HOST_CAP_64; 414 cap &= ~HOST_CAP_64;
416 } 415 }
417 416
418 if ((cap & HOST_CAP_NCQ) && (hpriv->flags & AHCI_HFLAG_NO_NCQ)) { 417 if ((cap & HOST_CAP_NCQ) && (hpriv->flags & AHCI_HFLAG_NO_NCQ)) {
419 dev_printk(KERN_INFO, dev, 418 dev_info(dev, "controller can't do NCQ, turning off CAP_NCQ\n");
420 "controller can't do NCQ, turning off CAP_NCQ\n");
421 cap &= ~HOST_CAP_NCQ; 419 cap &= ~HOST_CAP_NCQ;
422 } 420 }
423 421
424 if (!(cap & HOST_CAP_NCQ) && (hpriv->flags & AHCI_HFLAG_YES_NCQ)) { 422 if (!(cap & HOST_CAP_NCQ) && (hpriv->flags & AHCI_HFLAG_YES_NCQ)) {
425 dev_printk(KERN_INFO, dev, 423 dev_info(dev, "controller can do NCQ, turning on CAP_NCQ\n");
426 "controller can do NCQ, turning on CAP_NCQ\n");
427 cap |= HOST_CAP_NCQ; 424 cap |= HOST_CAP_NCQ;
428 } 425 }
429 426
430 if ((cap & HOST_CAP_PMP) && (hpriv->flags & AHCI_HFLAG_NO_PMP)) { 427 if ((cap & HOST_CAP_PMP) && (hpriv->flags & AHCI_HFLAG_NO_PMP)) {
431 dev_printk(KERN_INFO, dev, 428 dev_info(dev, "controller can't do PMP, turning off CAP_PMP\n");
432 "controller can't do PMP, turning off CAP_PMP\n");
433 cap &= ~HOST_CAP_PMP; 429 cap &= ~HOST_CAP_PMP;
434 } 430 }
435 431
436 if ((cap & HOST_CAP_SNTF) && (hpriv->flags & AHCI_HFLAG_NO_SNTF)) { 432 if ((cap & HOST_CAP_SNTF) && (hpriv->flags & AHCI_HFLAG_NO_SNTF)) {
437 dev_printk(KERN_INFO, dev, 433 dev_info(dev,
438 "controller can't do SNTF, turning off CAP_SNTF\n"); 434 "controller can't do SNTF, turning off CAP_SNTF\n");
439 cap &= ~HOST_CAP_SNTF; 435 cap &= ~HOST_CAP_SNTF;
440 } 436 }
441 437
442 if (!(cap & HOST_CAP_FBS) && (hpriv->flags & AHCI_HFLAG_YES_FBS)) { 438 if (!(cap & HOST_CAP_FBS) && (hpriv->flags & AHCI_HFLAG_YES_FBS)) {
443 dev_printk(KERN_INFO, dev, 439 dev_info(dev, "controller can do FBS, turning on CAP_FBS\n");
444 "controller can do FBS, turning on CAP_FBS\n");
445 cap |= HOST_CAP_FBS; 440 cap |= HOST_CAP_FBS;
446 } 441 }
447 442
448 if (force_port_map && port_map != force_port_map) { 443 if (force_port_map && port_map != force_port_map) {
449 dev_printk(KERN_INFO, dev, "forcing port_map 0x%x -> 0x%x\n", 444 dev_info(dev, "forcing port_map 0x%x -> 0x%x\n",
450 port_map, force_port_map); 445 port_map, force_port_map);
451 port_map = force_port_map; 446 port_map = force_port_map;
452 } 447 }
453 448
454 if (mask_port_map) { 449 if (mask_port_map) {
455 dev_printk(KERN_WARNING, dev, "masking port_map 0x%x -> 0x%x\n", 450 dev_warn(dev, "masking port_map 0x%x -> 0x%x\n",
456 port_map, 451 port_map,
457 port_map & mask_port_map); 452 port_map & mask_port_map);
458 port_map &= mask_port_map; 453 port_map &= mask_port_map;
459 } 454 }
460 455
@@ -470,10 +465,9 @@ void ahci_save_initial_config(struct device *dev,
470 * port_map and let it be generated from n_ports. 465 * port_map and let it be generated from n_ports.
471 */ 466 */
472 if (map_ports > ahci_nr_ports(cap)) { 467 if (map_ports > ahci_nr_ports(cap)) {
473 dev_printk(KERN_WARNING, dev, 468 dev_warn(dev,
474 "implemented port map (0x%x) contains more " 469 "implemented port map (0x%x) contains more ports than nr_ports (%u), using nr_ports\n",
475 "ports than nr_ports (%u), using nr_ports\n", 470 port_map, ahci_nr_ports(cap));
476 port_map, ahci_nr_ports(cap));
477 port_map = 0; 471 port_map = 0;
478 } 472 }
479 } 473 }
@@ -481,8 +475,7 @@ void ahci_save_initial_config(struct device *dev,
481 /* fabricate port_map from cap.nr_ports */ 475 /* fabricate port_map from cap.nr_ports */
482 if (!port_map) { 476 if (!port_map) {
483 port_map = (1 << ahci_nr_ports(cap)) - 1; 477 port_map = (1 << ahci_nr_ports(cap)) - 1;
484 dev_printk(KERN_WARNING, dev, 478 dev_warn(dev, "forcing PORTS_IMPL to 0x%x\n", port_map);
485 "forcing PORTS_IMPL to 0x%x\n", port_map);
486 479
487 /* write the fixed up value to the PI register */ 480 /* write the fixed up value to the PI register */
488 hpriv->saved_port_map = port_map; 481 hpriv->saved_port_map = port_map;
@@ -822,8 +815,8 @@ int ahci_reset_controller(struct ata_host *host)
822 HOST_RESET, 10, 1000); 815 HOST_RESET, 10, 1000);
823 816
824 if (tmp & HOST_RESET) { 817 if (tmp & HOST_RESET) {
825 dev_printk(KERN_ERR, host->dev, 818 dev_err(host->dev, "controller reset failed (0x%x)\n",
826 "controller reset failed (0x%x)\n", tmp); 819 tmp);
827 return -EIO; 820 return -EIO;
828 } 821 }
829 822
@@ -835,8 +828,7 @@ int ahci_reset_controller(struct ata_host *host)
835 */ 828 */
836 ahci_restore_initial_config(host); 829 ahci_restore_initial_config(host);
837 } else 830 } else
838 dev_printk(KERN_INFO, host->dev, 831 dev_info(host->dev, "skipping global host reset\n");
839 "skipping global host reset\n");
840 832
841 return 0; 833 return 0;
842} 834}
@@ -1474,8 +1466,7 @@ static void ahci_fbs_dec_intr(struct ata_port *ap)
1474 } 1466 }
1475 1467
1476 if (fbs & PORT_FBS_DEC) 1468 if (fbs & PORT_FBS_DEC)
1477 dev_printk(KERN_ERR, ap->host->dev, 1469 dev_err(ap->host->dev, "failed to clear device error\n");
1478 "failed to clear device error\n");
1479} 1470}
1480 1471
1481static void ahci_error_intr(struct ata_port *ap, u32 irq_stat) 1472static void ahci_error_intr(struct ata_port *ap, u32 irq_stat)
@@ -1713,8 +1704,8 @@ irqreturn_t ahci_interrupt(int irq, void *dev_instance)
1713 } else { 1704 } else {
1714 VPRINTK("port %u (no irq)\n", i); 1705 VPRINTK("port %u (no irq)\n", i);
1715 if (ata_ratelimit()) 1706 if (ata_ratelimit())
1716 dev_printk(KERN_WARNING, host->dev, 1707 dev_warn(host->dev,
1717 "interrupt on disabled port %u\n", i); 1708 "interrupt on disabled port %u\n", i);
1718 } 1709 }
1719 1710
1720 handled = 1; 1711 handled = 1;
@@ -1865,11 +1856,11 @@ static void ahci_enable_fbs(struct ata_port *ap)
1865 writel(fbs | PORT_FBS_EN, port_mmio + PORT_FBS); 1856 writel(fbs | PORT_FBS_EN, port_mmio + PORT_FBS);
1866 fbs = readl(port_mmio + PORT_FBS); 1857 fbs = readl(port_mmio + PORT_FBS);
1867 if (fbs & PORT_FBS_EN) { 1858 if (fbs & PORT_FBS_EN) {
1868 dev_printk(KERN_INFO, ap->host->dev, "FBS is enabled.\n"); 1859 dev_info(ap->host->dev, "FBS is enabled\n");
1869 pp->fbs_enabled = true; 1860 pp->fbs_enabled = true;
1870 pp->fbs_last_dev = -1; /* initialization */ 1861 pp->fbs_last_dev = -1; /* initialization */
1871 } else 1862 } else
1872 dev_printk(KERN_ERR, ap->host->dev, "Failed to enable FBS\n"); 1863 dev_err(ap->host->dev, "Failed to enable FBS\n");
1873 1864
1874 ahci_start_engine(ap); 1865 ahci_start_engine(ap);
1875} 1866}
@@ -1897,9 +1888,9 @@ static void ahci_disable_fbs(struct ata_port *ap)
1897 writel(fbs & ~PORT_FBS_EN, port_mmio + PORT_FBS); 1888 writel(fbs & ~PORT_FBS_EN, port_mmio + PORT_FBS);
1898 fbs = readl(port_mmio + PORT_FBS); 1889 fbs = readl(port_mmio + PORT_FBS);
1899 if (fbs & PORT_FBS_EN) 1890 if (fbs & PORT_FBS_EN)
1900 dev_printk(KERN_ERR, ap->host->dev, "Failed to disable FBS\n"); 1891 dev_err(ap->host->dev, "Failed to disable FBS\n");
1901 else { 1892 else {
1902 dev_printk(KERN_INFO, ap->host->dev, "FBS is disabled.\n"); 1893 dev_info(ap->host->dev, "FBS is disabled\n");
1903 pp->fbs_enabled = false; 1894 pp->fbs_enabled = false;
1904 } 1895 }
1905 1896
@@ -2003,14 +1994,12 @@ static int ahci_port_start(struct ata_port *ap)
2003 if (cmd & PORT_CMD_FBSCP) 1994 if (cmd & PORT_CMD_FBSCP)
2004 pp->fbs_supported = true; 1995 pp->fbs_supported = true;
2005 else if (hpriv->flags & AHCI_HFLAG_YES_FBS) { 1996 else if (hpriv->flags & AHCI_HFLAG_YES_FBS) {
2006 dev_printk(KERN_INFO, dev, 1997 dev_info(dev, "port %d can do FBS, forcing FBSCP\n",
2007 "port %d can do FBS, forcing FBSCP\n", 1998 ap->port_no);
2008 ap->port_no);
2009 pp->fbs_supported = true; 1999 pp->fbs_supported = true;
2010 } else 2000 } else
2011 dev_printk(KERN_WARNING, dev, 2001 dev_warn(dev, "port %d is not capable of FBS\n",
2012 "port %d is not capable of FBS\n", 2002 ap->port_no);
2013 ap->port_no);
2014 } 2003 }
2015 2004
2016 if (pp->fbs_supported) { 2005 if (pp->fbs_supported) {
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 000d03ae6653..481089c85a94 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -5847,9 +5847,9 @@ int ata_host_start(struct ata_host *host)
5847 rc = ap->ops->port_start(ap); 5847 rc = ap->ops->port_start(ap);
5848 if (rc) { 5848 if (rc) {
5849 if (rc != -ENODEV) 5849 if (rc != -ENODEV)
5850 dev_printk(KERN_ERR, host->dev, 5850 dev_err(host->dev,
5851 "failed to start port %d " 5851 "failed to start port %d (errno=%d)\n",
5852 "(errno=%d)\n", i, rc); 5852 i, rc);
5853 goto err_out; 5853 goto err_out;
5854 } 5854 }
5855 } 5855 }
@@ -5971,8 +5971,7 @@ int ata_host_register(struct ata_host *host, struct scsi_host_template *sht)
5971 5971
5972 /* host must have been started */ 5972 /* host must have been started */
5973 if (!(host->flags & ATA_HOST_STARTED)) { 5973 if (!(host->flags & ATA_HOST_STARTED)) {
5974 dev_printk(KERN_ERR, host->dev, 5974 dev_err(host->dev, "BUG: trying to register unstarted host\n");
5975 "BUG: trying to register unstarted host\n");
5976 WARN_ON(1); 5975 WARN_ON(1);
5977 return -EINVAL; 5976 return -EINVAL;
5978 } 5977 }
@@ -6242,8 +6241,8 @@ int ata_pci_device_do_resume(struct pci_dev *pdev)
6242 6241
6243 rc = pcim_enable_device(pdev); 6242 rc = pcim_enable_device(pdev);
6244 if (rc) { 6243 if (rc) {
6245 dev_printk(KERN_ERR, &pdev->dev, 6244 dev_err(&pdev->dev,
6246 "failed to enable device after resume (%d)\n", rc); 6245 "failed to enable device after resume (%d)\n", rc);
6247 return rc; 6246 return rc;
6248 } 6247 }
6249 6248
diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c
index b1b926c55a72..e01d5cfba68a 100644
--- a/drivers/ata/libata-sff.c
+++ b/drivers/ata/libata-sff.c
@@ -2316,9 +2316,9 @@ int ata_pci_sff_init_host(struct ata_host *host)
2316 rc = pcim_iomap_regions(pdev, 0x3 << base, 2316 rc = pcim_iomap_regions(pdev, 0x3 << base,
2317 dev_driver_string(gdev)); 2317 dev_driver_string(gdev));
2318 if (rc) { 2318 if (rc) {
2319 dev_printk(KERN_WARNING, gdev, 2319 dev_warn(gdev,
2320 "failed to request/iomap BARs for port %d " 2320 "failed to request/iomap BARs for port %d (errno=%d)\n",
2321 "(errno=%d)\n", i, rc); 2321 i, rc);
2322 if (rc == -EBUSY) 2322 if (rc == -EBUSY)
2323 pcim_pin_device(pdev); 2323 pcim_pin_device(pdev);
2324 ap->ops = &ata_dummy_port_ops; 2324 ap->ops = &ata_dummy_port_ops;
@@ -2340,7 +2340,7 @@ int ata_pci_sff_init_host(struct ata_host *host)
2340 } 2340 }
2341 2341
2342 if (!mask) { 2342 if (!mask) {
2343 dev_printk(KERN_ERR, gdev, "no available native port\n"); 2343 dev_err(gdev, "no available native port\n");
2344 return -ENODEV; 2344 return -ENODEV;
2345 } 2345 }
2346 2346
@@ -2375,8 +2375,7 @@ int ata_pci_sff_prepare_host(struct pci_dev *pdev,
2375 2375
2376 host = ata_host_alloc_pinfo(&pdev->dev, ppi, 2); 2376 host = ata_host_alloc_pinfo(&pdev->dev, ppi, 2);
2377 if (!host) { 2377 if (!host) {
2378 dev_printk(KERN_ERR, &pdev->dev, 2378 dev_err(&pdev->dev, "failed to allocate ATA host\n");
2379 "failed to allocate ATA host\n");
2380 rc = -ENOMEM; 2379 rc = -ENOMEM;
2381 goto err_out; 2380 goto err_out;
2382 } 2381 }
@@ -2542,8 +2541,7 @@ int ata_pci_sff_init_one(struct pci_dev *pdev,
2542 2541
2543 pi = ata_sff_find_valid_pi(ppi); 2542 pi = ata_sff_find_valid_pi(ppi);
2544 if (!pi) { 2543 if (!pi) {
2545 dev_printk(KERN_ERR, &pdev->dev, 2544 dev_err(&pdev->dev, "no valid port_info specified\n");
2546 "no valid port_info specified\n");
2547 return -EINVAL; 2545 return -EINVAL;
2548 } 2546 }
2549 2547
@@ -3164,8 +3162,7 @@ static void ata_bmdma_nodma(struct ata_host *host, const char *reason)
3164{ 3162{
3165 int i; 3163 int i;
3166 3164
3167 dev_printk(KERN_ERR, host->dev, "BMDMA: %s, falling back to PIO\n", 3165 dev_err(host->dev, "BMDMA: %s, falling back to PIO\n", reason);
3168 reason);
3169 3166
3170 for (i = 0; i < 2; i++) { 3167 for (i = 0; i < 2; i++) {
3171 host->ports[i]->mwdma_mask = 0; 3168 host->ports[i]->mwdma_mask = 0;
@@ -3297,8 +3294,7 @@ int ata_pci_bmdma_init_one(struct pci_dev *pdev,
3297 3294
3298 pi = ata_sff_find_valid_pi(ppi); 3295 pi = ata_sff_find_valid_pi(ppi);
3299 if (!pi) { 3296 if (!pi) {
3300 dev_printk(KERN_ERR, &pdev->dev, 3297 dev_err(&pdev->dev, "no valid port_info specified\n");
3301 "no valid port_info specified\n");
3302 return -EINVAL; 3298 return -EINVAL;
3303 } 3299 }
3304 3300
diff --git a/drivers/ata/pata_amd.c b/drivers/ata/pata_amd.c
index b0975a5ad8c4..b741e0f73566 100644
--- a/drivers/ata/pata_amd.c
+++ b/drivers/ata/pata_amd.c
@@ -60,7 +60,7 @@ static void timing_setup(struct ata_port *ap, struct ata_device *adev, int offse
60 UT = T / 2; 60 UT = T / 2;
61 61
62 if (ata_timing_compute(adev, speed, &at, T, UT) < 0) { 62 if (ata_timing_compute(adev, speed, &at, T, UT) < 0) {
63 dev_printk(KERN_ERR, &pdev->dev, "unknown mode %d.\n", speed); 63 dev_err(&pdev->dev, "unknown mode %d\n", speed);
64 return; 64 return;
65 } 65 }
66 66
diff --git a/drivers/ata/pata_atp867x.c b/drivers/ata/pata_atp867x.c
index 95295935dd95..bcbf99856e1f 100644
--- a/drivers/ata/pata_atp867x.c
+++ b/drivers/ata/pata_atp867x.c
@@ -470,7 +470,7 @@ static int atp867x_ata_pci_sff_init_host(struct ata_host *host)
470 } 470 }
471 471
472 if (!mask) { 472 if (!mask) {
473 dev_printk(KERN_ERR, gdev, "no available native port\n"); 473 dev_err(gdev, "no available native port\n");
474 return -ENODEV; 474 return -ENODEV;
475 } 475 }
476 476
@@ -500,7 +500,7 @@ static int atp867x_init_one(struct pci_dev *pdev,
500 int rc; 500 int rc;
501 501
502 if (!printed_version++) 502 if (!printed_version++)
503 dev_printk(KERN_INFO, &pdev->dev, "version " DRV_VERSION "\n"); 503 dev_info(&pdev->dev, "version " DRV_VERSION "\n");
504 504
505 rc = pcim_enable_device(pdev); 505 rc = pcim_enable_device(pdev);
506 if (rc) 506 if (rc)
@@ -511,15 +511,14 @@ static int atp867x_init_one(struct pci_dev *pdev,
511 511
512 host = ata_host_alloc_pinfo(&pdev->dev, ppi, ATP867X_NUM_PORTS); 512 host = ata_host_alloc_pinfo(&pdev->dev, ppi, ATP867X_NUM_PORTS);
513 if (!host) { 513 if (!host) {
514 dev_printk(KERN_ERR, &pdev->dev, 514 dev_err(&pdev->dev, "failed to allocate ATA host\n");
515 "failed to allocate ATA host\n");
516 rc = -ENOMEM; 515 rc = -ENOMEM;
517 goto err_out; 516 goto err_out;
518 } 517 }
519 518
520 rc = atp867x_ata_pci_sff_init_host(host); 519 rc = atp867x_ata_pci_sff_init_host(host);
521 if (rc) { 520 if (rc) {
522 dev_printk(KERN_ERR, &pdev->dev, "failed to init host\n"); 521 dev_err(&pdev->dev, "failed to init host\n");
523 goto err_out; 522 goto err_out;
524 } 523 }
525 524
@@ -528,7 +527,7 @@ static int atp867x_init_one(struct pci_dev *pdev,
528 rc = ata_host_activate(host, pdev->irq, ata_bmdma_interrupt, 527 rc = ata_host_activate(host, pdev->irq, ata_bmdma_interrupt,
529 IRQF_SHARED, &atp867x_sht); 528 IRQF_SHARED, &atp867x_sht);
530 if (rc) 529 if (rc)
531 dev_printk(KERN_ERR, &pdev->dev, "failed to activate host\n"); 530 dev_err(&pdev->dev, "failed to activate host\n");
532 531
533err_out: 532err_out:
534 return rc; 533 return rc;
diff --git a/drivers/ata/pata_cs5520.c b/drivers/ata/pata_cs5520.c
index e3254fcff0f1..9ddcddc66a20 100644
--- a/drivers/ata/pata_cs5520.c
+++ b/drivers/ata/pata_cs5520.c
@@ -149,8 +149,7 @@ static int __devinit cs5520_init_one(struct pci_dev *pdev, const struct pci_devi
149 ppi[1] = &pi; 149 ppi[1] = &pi;
150 150
151 if ((pcicfg & 0x40) == 0) { 151 if ((pcicfg & 0x40) == 0) {
152 dev_printk(KERN_WARNING, &pdev->dev, 152 dev_warn(&pdev->dev, "DMA mode disabled. Enabling.\n");
153 "DMA mode disabled. Enabling.\n");
154 pci_write_config_byte(pdev, 0x60, pcicfg | 0x40); 153 pci_write_config_byte(pdev, 0x60, pcicfg | 0x40);
155 } 154 }
156 155
diff --git a/drivers/ata/pata_ixp4xx_cf.c b/drivers/ata/pata_ixp4xx_cf.c
index f6b3f995f58a..ee26835124e1 100644
--- a/drivers/ata/pata_ixp4xx_cf.c
+++ b/drivers/ata/pata_ixp4xx_cf.c
@@ -181,7 +181,7 @@ static __devinit int ixp4xx_pata_probe(struct platform_device *pdev)
181 181
182 ixp4xx_setup_port(ap, data, cs0->start, cs1->start); 182 ixp4xx_setup_port(ap, data, cs0->start, cs1->start);
183 183
184 dev_printk(KERN_INFO, &pdev->dev, "version " DRV_VERSION "\n"); 184 dev_info(&pdev->dev, "version " DRV_VERSION "\n");
185 185
186 /* activate host */ 186 /* activate host */
187 return ata_host_activate(host, irq, ata_sff_interrupt, 0, &ixp4xx_sht); 187 return ata_host_activate(host, irq, ata_sff_interrupt, 0, &ixp4xx_sht);
diff --git a/drivers/ata/pata_macio.c b/drivers/ata/pata_macio.c
index 46f589edccdb..d39c10b61f2b 100644
--- a/drivers/ata/pata_macio.c
+++ b/drivers/ata/pata_macio.c
@@ -772,8 +772,9 @@ static void pata_macio_reset_hw(struct pata_macio_priv *priv, int resume)
772 pci_restore_state(priv->pdev); 772 pci_restore_state(priv->pdev);
773 rc = pcim_enable_device(priv->pdev); 773 rc = pcim_enable_device(priv->pdev);
774 if (rc) 774 if (rc)
775 dev_printk(KERN_ERR, &priv->pdev->dev, 775 dev_err(&priv->pdev->dev,
776 "Failed to enable device after resume (%d)\n", rc); 776 "Failed to enable device after resume (%d)\n",
777 rc);
777 else 778 else
778 pci_set_master(priv->pdev); 779 pci_set_master(priv->pdev);
779 } 780 }
diff --git a/drivers/ata/pata_ns87410.c b/drivers/ata/pata_ns87410.c
index 2110863bb3db..31d5986537a3 100644
--- a/drivers/ata/pata_ns87410.c
+++ b/drivers/ata/pata_ns87410.c
@@ -86,7 +86,7 @@ static void ns87410_set_piomode(struct ata_port *ap, struct ata_device *adev)
86 idefr &= ~0x04; 86 idefr &= ~0x04;
87 87
88 if (ata_timing_compute(adev, adev->pio_mode, &at, 30303, 1) < 0) { 88 if (ata_timing_compute(adev, adev->pio_mode, &at, 30303, 1) < 0) {
89 dev_printk(KERN_ERR, &pdev->dev, "unknown mode %d.\n", adev->pio_mode); 89 dev_err(&pdev->dev, "unknown mode %d\n", adev->pio_mode);
90 return; 90 return;
91 } 91 }
92 92
diff --git a/drivers/ata/pata_pdc2027x.c b/drivers/ata/pata_pdc2027x.c
index 9765ace16921..c8cdd6d1cc6f 100644
--- a/drivers/ata/pata_pdc2027x.c
+++ b/drivers/ata/pata_pdc2027x.c
@@ -655,7 +655,7 @@ static int pdc_hardware_init(struct ata_host *host, unsigned int board_idx)
655 */ 655 */
656 pll_clock = pdc_detect_pll_input_clock(host); 656 pll_clock = pdc_detect_pll_input_clock(host);
657 657
658 dev_printk(KERN_INFO, host->dev, "PLL input clock %ld kHz\n", pll_clock/1000); 658 dev_info(host->dev, "PLL input clock %ld kHz\n", pll_clock/1000);
659 659
660 /* Adjust PLL control register */ 660 /* Adjust PLL control register */
661 pdc_adjust_pll(host, pll_clock, board_idx); 661 pdc_adjust_pll(host, pll_clock, board_idx);
diff --git a/drivers/ata/pata_sl82c105.c b/drivers/ata/pata_sl82c105.c
index 7f5d020ed56c..c06ce8ced566 100644
--- a/drivers/ata/pata_sl82c105.c
+++ b/drivers/ata/pata_sl82c105.c
@@ -317,9 +317,11 @@ static int sl82c105_init_one(struct pci_dev *dev, const struct pci_device_id *id
317 rev = sl82c105_bridge_revision(dev); 317 rev = sl82c105_bridge_revision(dev);
318 318
319 if (rev == -1) 319 if (rev == -1)
320 dev_printk(KERN_WARNING, &dev->dev, "pata_sl82c105: Unable to find bridge, disabling DMA.\n"); 320 dev_warn(&dev->dev,
321 "pata_sl82c105: Unable to find bridge, disabling DMA\n");
321 else if (rev <= 5) 322 else if (rev <= 5)
322 dev_printk(KERN_WARNING, &dev->dev, "pata_sl82c105: Early bridge revision, no DMA available.\n"); 323 dev_warn(&dev->dev,
324 "pata_sl82c105: Early bridge revision, no DMA available\n");
323 else 325 else
324 ppi[0] = &info_dma; 326 ppi[0] = &info_dma;
325 327
diff --git a/drivers/ata/pdc_adma.c b/drivers/ata/pdc_adma.c
index 1111712b3d7d..fdad56c8662a 100644
--- a/drivers/ata/pdc_adma.c
+++ b/drivers/ata/pdc_adma.c
@@ -596,14 +596,12 @@ static int adma_set_dma_masks(struct pci_dev *pdev, void __iomem *mmio_base)
596 596
597 rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 597 rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
598 if (rc) { 598 if (rc) {
599 dev_printk(KERN_ERR, &pdev->dev, 599 dev_err(&pdev->dev, "32-bit DMA enable failed\n");
600 "32-bit DMA enable failed\n");
601 return rc; 600 return rc;
602 } 601 }
603 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 602 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
604 if (rc) { 603 if (rc) {
605 dev_printk(KERN_ERR, &pdev->dev, 604 dev_err(&pdev->dev, "32-bit consistent DMA enable failed\n");
606 "32-bit consistent DMA enable failed\n");
607 return rc; 605 return rc;
608 } 606 }
609 return 0; 607 return 0;
diff --git a/drivers/ata/sata_fsl.c b/drivers/ata/sata_fsl.c
index 35a71d875d0e..1cc70e33d5a3 100644
--- a/drivers/ata/sata_fsl.c
+++ b/drivers/ata/sata_fsl.c
@@ -661,8 +661,7 @@ static int sata_fsl_port_start(struct ata_port *ap)
661 sata_fsl_scr_write(&ap->link, SCR_CONTROL, temp); 661 sata_fsl_scr_write(&ap->link, SCR_CONTROL, temp);
662 662
663 sata_fsl_scr_read(&ap->link, SCR_CONTROL, &temp); 663 sata_fsl_scr_read(&ap->link, SCR_CONTROL, &temp);
664 dev_printk(KERN_WARNING, dev, "scr_control, speed limited to %x\n", 664 dev_warn(dev, "scr_control, speed limited to %x\n", temp);
665 temp);
666#endif 665#endif
667 666
668 return 0; 667 return 0;
@@ -1202,8 +1201,7 @@ static irqreturn_t sata_fsl_interrupt(int irq, void *dev_instance)
1202 if (ap) { 1201 if (ap) {
1203 sata_fsl_host_intr(ap); 1202 sata_fsl_host_intr(ap);
1204 } else { 1203 } else {
1205 dev_printk(KERN_WARNING, host->dev, 1204 dev_warn(host->dev, "interrupt on disabled port 0\n");
1206 "interrupt on disabled port 0\n");
1207 } 1205 }
1208 1206
1209 iowrite32(interrupt_enables, hcr_base + HSTATUS); 1207 iowrite32(interrupt_enables, hcr_base + HSTATUS);
@@ -1317,8 +1315,7 @@ static int sata_fsl_probe(struct platform_device *ofdev)
1317 struct ata_port_info pi = sata_fsl_port_info[0]; 1315 struct ata_port_info pi = sata_fsl_port_info[0];
1318 const struct ata_port_info *ppi[] = { &pi, NULL }; 1316 const struct ata_port_info *ppi[] = { &pi, NULL };
1319 1317
1320 dev_printk(KERN_INFO, &ofdev->dev, 1318 dev_info(&ofdev->dev, "Sata FSL Platform/CSB Driver init\n");
1321 "Sata FSL Platform/CSB Driver init\n");
1322 1319
1323 hcr_base = of_iomap(ofdev->dev.of_node, 0); 1320 hcr_base = of_iomap(ofdev->dev.of_node, 0);
1324 if (!hcr_base) 1321 if (!hcr_base)
@@ -1347,7 +1344,7 @@ static int sata_fsl_probe(struct platform_device *ofdev)
1347 1344
1348 irq = irq_of_parse_and_map(ofdev->dev.of_node, 0); 1345 irq = irq_of_parse_and_map(ofdev->dev.of_node, 0);
1349 if (irq < 0) { 1346 if (irq < 0) {
1350 dev_printk(KERN_ERR, &ofdev->dev, "invalid irq from platform\n"); 1347 dev_err(&ofdev->dev, "invalid irq from platform\n");
1351 goto error_exit_with_cleanup; 1348 goto error_exit_with_cleanup;
1352 } 1349 }
1353 host_priv->irq = irq; 1350 host_priv->irq = irq;
@@ -1422,8 +1419,7 @@ static int sata_fsl_resume(struct platform_device *op)
1422 1419
1423 ret = sata_fsl_init_controller(host); 1420 ret = sata_fsl_init_controller(host);
1424 if (ret) { 1421 if (ret) {
1425 dev_printk(KERN_ERR, &op->dev, 1422 dev_err(&op->dev, "Error initializing hardware\n");
1426 "Error initialize hardware\n");
1427 return ret; 1423 return ret;
1428 } 1424 }
1429 1425
diff --git a/drivers/ata/sata_inic162x.c b/drivers/ata/sata_inic162x.c
index 83a44471b189..83019e61e368 100644
--- a/drivers/ata/sata_inic162x.c
+++ b/drivers/ata/sata_inic162x.c
@@ -847,15 +847,13 @@ static int inic_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
847 /* Set dma_mask. This devices doesn't support 64bit addressing. */ 847 /* Set dma_mask. This devices doesn't support 64bit addressing. */
848 rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 848 rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
849 if (rc) { 849 if (rc) {
850 dev_printk(KERN_ERR, &pdev->dev, 850 dev_err(&pdev->dev, "32-bit DMA enable failed\n");
851 "32-bit DMA enable failed\n");
852 return rc; 851 return rc;
853 } 852 }
854 853
855 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 854 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
856 if (rc) { 855 if (rc) {
857 dev_printk(KERN_ERR, &pdev->dev, 856 dev_err(&pdev->dev, "32-bit consistent DMA enable failed\n");
858 "32-bit consistent DMA enable failed\n");
859 return rc; 857 return rc;
860 } 858 }
861 859
@@ -866,15 +864,13 @@ static int inic_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
866 */ 864 */
867 rc = pci_set_dma_max_seg_size(pdev, 65536 - 512); 865 rc = pci_set_dma_max_seg_size(pdev, 65536 - 512);
868 if (rc) { 866 if (rc) {
869 dev_printk(KERN_ERR, &pdev->dev, 867 dev_err(&pdev->dev, "failed to set the maximum segment size\n");
870 "failed to set the maximum segment size.\n");
871 return rc; 868 return rc;
872 } 869 }
873 870
874 rc = init_controller(hpriv->mmio_base, hpriv->cached_hctl); 871 rc = init_controller(hpriv->mmio_base, hpriv->cached_hctl);
875 if (rc) { 872 if (rc) {
876 dev_printk(KERN_ERR, &pdev->dev, 873 dev_err(&pdev->dev, "failed to initialize controller\n");
877 "failed to initialize controller\n");
878 return rc; 874 return rc;
879 } 875 }
880 876
diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c
index b52c0519ad0b..bea717a22e32 100644
--- a/drivers/ata/sata_mv.c
+++ b/drivers/ata/sata_mv.c
@@ -2930,8 +2930,7 @@ static int mv_pci_error(struct ata_host *host, void __iomem *mmio)
2930 2930
2931 err_cause = readl(mmio + hpriv->irq_cause_offset); 2931 err_cause = readl(mmio + hpriv->irq_cause_offset);
2932 2932
2933 dev_printk(KERN_ERR, host->dev, "PCI ERROR; PCI IRQ cause=0x%08x\n", 2933 dev_err(host->dev, "PCI ERROR; PCI IRQ cause=0x%08x\n", err_cause);
2934 err_cause);
2935 2934
2936 DPRINTK("All regs @ PCI error\n"); 2935 DPRINTK("All regs @ PCI error\n");
2937 mv_dump_all_regs(mmio, -1, to_pci_dev(host->dev)); 2936 mv_dump_all_regs(mmio, -1, to_pci_dev(host->dev));
@@ -3760,8 +3759,8 @@ static int mv_chip_id(struct ata_host *host, unsigned int board_idx)
3760 hp_flags |= MV_HP_ERRATA_50XXB2; 3759 hp_flags |= MV_HP_ERRATA_50XXB2;
3761 break; 3760 break;
3762 default: 3761 default:
3763 dev_printk(KERN_WARNING, &pdev->dev, 3762 dev_warn(&pdev->dev,
3764 "Applying 50XXB2 workarounds to unknown rev\n"); 3763 "Applying 50XXB2 workarounds to unknown rev\n");
3765 hp_flags |= MV_HP_ERRATA_50XXB2; 3764 hp_flags |= MV_HP_ERRATA_50XXB2;
3766 break; 3765 break;
3767 } 3766 }
@@ -3780,8 +3779,8 @@ static int mv_chip_id(struct ata_host *host, unsigned int board_idx)
3780 hp_flags |= MV_HP_ERRATA_50XXB2; 3779 hp_flags |= MV_HP_ERRATA_50XXB2;
3781 break; 3780 break;
3782 default: 3781 default:
3783 dev_printk(KERN_WARNING, &pdev->dev, 3782 dev_warn(&pdev->dev,
3784 "Applying B2 workarounds to unknown rev\n"); 3783 "Applying B2 workarounds to unknown rev\n");
3785 hp_flags |= MV_HP_ERRATA_50XXB2; 3784 hp_flags |= MV_HP_ERRATA_50XXB2;
3786 break; 3785 break;
3787 } 3786 }
@@ -3801,8 +3800,8 @@ static int mv_chip_id(struct ata_host *host, unsigned int board_idx)
3801 hp_flags |= MV_HP_ERRATA_60X1C0; 3800 hp_flags |= MV_HP_ERRATA_60X1C0;
3802 break; 3801 break;
3803 default: 3802 default:
3804 dev_printk(KERN_WARNING, &pdev->dev, 3803 dev_warn(&pdev->dev,
3805 "Applying B2 workarounds to unknown rev\n"); 3804 "Applying B2 workarounds to unknown rev\n");
3806 hp_flags |= MV_HP_ERRATA_60X1B2; 3805 hp_flags |= MV_HP_ERRATA_60X1B2;
3807 break; 3806 break;
3808 } 3807 }
@@ -3851,8 +3850,8 @@ static int mv_chip_id(struct ata_host *host, unsigned int board_idx)
3851 hp_flags |= MV_HP_ERRATA_60X1C0; 3850 hp_flags |= MV_HP_ERRATA_60X1C0;
3852 break; 3851 break;
3853 default: 3852 default:
3854 dev_printk(KERN_WARNING, &pdev->dev, 3853 dev_warn(&pdev->dev,
3855 "Applying 60X1C0 workarounds to unknown rev\n"); 3854 "Applying 60X1C0 workarounds to unknown rev\n");
3856 hp_flags |= MV_HP_ERRATA_60X1C0; 3855 hp_flags |= MV_HP_ERRATA_60X1C0;
3857 break; 3856 break;
3858 } 3857 }
@@ -3867,8 +3866,7 @@ static int mv_chip_id(struct ata_host *host, unsigned int board_idx)
3867 break; 3866 break;
3868 3867
3869 default: 3868 default:
3870 dev_printk(KERN_ERR, host->dev, 3869 dev_err(host->dev, "BUG: invalid board index %u\n", board_idx);
3871 "BUG: invalid board index %u\n", board_idx);
3872 return 1; 3870 return 1;
3873 } 3871 }
3874 3872
@@ -4033,7 +4031,7 @@ static int mv_platform_probe(struct platform_device *pdev)
4033 int n_ports, rc; 4031 int n_ports, rc;
4034 4032
4035 if (!printed_version++) 4033 if (!printed_version++)
4036 dev_printk(KERN_INFO, &pdev->dev, "version " DRV_VERSION "\n"); 4034 dev_info(&pdev->dev, "version " DRV_VERSION "\n");
4037 4035
4038 /* 4036 /*
4039 * Simple resource validation .. 4037 * Simple resource validation ..
@@ -4091,9 +4089,8 @@ static int mv_platform_probe(struct platform_device *pdev)
4091 if (rc) 4089 if (rc)
4092 goto err; 4090 goto err;
4093 4091
4094 dev_printk(KERN_INFO, &pdev->dev, 4092 dev_info(&pdev->dev, "slots %u ports %d\n",
4095 "slots %u ports %d\n", (unsigned)MV_MAX_Q_DEPTH, 4093 (unsigned)MV_MAX_Q_DEPTH, host->n_ports);
4096 host->n_ports);
4097 4094
4098 return ata_host_activate(host, platform_get_irq(pdev, 0), mv_interrupt, 4095 return ata_host_activate(host, platform_get_irq(pdev, 0), mv_interrupt,
4099 IRQF_SHARED, &mv6_sht); 4096 IRQF_SHARED, &mv6_sht);
@@ -4217,22 +4214,21 @@ static int pci_go_64(struct pci_dev *pdev)
4217 if (rc) { 4214 if (rc) {
4218 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 4215 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
4219 if (rc) { 4216 if (rc) {
4220 dev_printk(KERN_ERR, &pdev->dev, 4217 dev_err(&pdev->dev,
4221 "64-bit DMA enable failed\n"); 4218 "64-bit DMA enable failed\n");
4222 return rc; 4219 return rc;
4223 } 4220 }
4224 } 4221 }
4225 } else { 4222 } else {
4226 rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 4223 rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
4227 if (rc) { 4224 if (rc) {
4228 dev_printk(KERN_ERR, &pdev->dev, 4225 dev_err(&pdev->dev, "32-bit DMA enable failed\n");
4229 "32-bit DMA enable failed\n");
4230 return rc; 4226 return rc;
4231 } 4227 }
4232 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 4228 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
4233 if (rc) { 4229 if (rc) {
4234 dev_printk(KERN_ERR, &pdev->dev, 4230 dev_err(&pdev->dev,
4235 "32-bit consistent DMA enable failed\n"); 4231 "32-bit consistent DMA enable failed\n");
4236 return rc; 4232 return rc;
4237 } 4233 }
4238 } 4234 }
@@ -4276,10 +4272,9 @@ static void mv_print_info(struct ata_host *host)
4276 else 4272 else
4277 gen = "?"; 4273 gen = "?";
4278 4274
4279 dev_printk(KERN_INFO, &pdev->dev, 4275 dev_info(&pdev->dev, "Gen-%s %u slots %u ports %s mode IRQ via %s\n",
4280 "Gen-%s %u slots %u ports %s mode IRQ via %s\n", 4276 gen, (unsigned)MV_MAX_Q_DEPTH, host->n_ports,
4281 gen, (unsigned)MV_MAX_Q_DEPTH, host->n_ports, 4277 scc_s, (MV_HP_FLAG_MSI & hpriv->hp_flags) ? "MSI" : "INTx");
4282 scc_s, (MV_HP_FLAG_MSI & hpriv->hp_flags) ? "MSI" : "INTx");
4283} 4278}
4284 4279
4285/** 4280/**
@@ -4301,7 +4296,7 @@ static int mv_pci_init_one(struct pci_dev *pdev,
4301 int n_ports, port, rc; 4296 int n_ports, port, rc;
4302 4297
4303 if (!printed_version++) 4298 if (!printed_version++)
4304 dev_printk(KERN_INFO, &pdev->dev, "version " DRV_VERSION "\n"); 4299 dev_info(&pdev->dev, "version " DRV_VERSION "\n");
4305 4300
4306 /* allocate host */ 4301 /* allocate host */
4307 n_ports = mv_get_hc_count(ppi[0]->flags) * MV_PORTS_PER_HC; 4302 n_ports = mv_get_hc_count(ppi[0]->flags) * MV_PORTS_PER_HC;
diff --git a/drivers/ata/sata_nv.c b/drivers/ata/sata_nv.c
index f173ef3bfc10..f215e10c11cf 100644
--- a/drivers/ata/sata_nv.c
+++ b/drivers/ata/sata_nv.c
@@ -2382,10 +2382,10 @@ static int nv_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
2382 2382
2383 /* determine type and allocate host */ 2383 /* determine type and allocate host */
2384 if (type == CK804 && adma_enabled) { 2384 if (type == CK804 && adma_enabled) {
2385 dev_printk(KERN_NOTICE, &pdev->dev, "Using ADMA mode\n"); 2385 dev_notice(&pdev->dev, "Using ADMA mode\n");
2386 type = ADMA; 2386 type = ADMA;
2387 } else if (type == MCP5x && swncq_enabled) { 2387 } else if (type == MCP5x && swncq_enabled) {
2388 dev_printk(KERN_NOTICE, &pdev->dev, "Using SWNCQ mode\n"); 2388 dev_notice(&pdev->dev, "Using SWNCQ mode\n");
2389 type = SWNCQ; 2389 type = SWNCQ;
2390 } 2390 }
2391 2391
@@ -2429,7 +2429,7 @@ static int nv_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
2429 nv_swncq_host_init(host); 2429 nv_swncq_host_init(host);
2430 2430
2431 if (msi_enabled) { 2431 if (msi_enabled) {
2432 dev_printk(KERN_NOTICE, &pdev->dev, "Using MSI\n"); 2432 dev_notice(&pdev->dev, "Using MSI\n");
2433 pci_enable_msi(pdev); 2433 pci_enable_msi(pdev);
2434 } 2434 }
2435 2435
diff --git a/drivers/ata/sata_promise.c b/drivers/ata/sata_promise.c
index a004b1e0ea6d..2ad51f9358bd 100644
--- a/drivers/ata/sata_promise.c
+++ b/drivers/ata/sata_promise.c
@@ -1217,7 +1217,7 @@ static int pdc_ata_init_one(struct pci_dev *pdev,
1217 1217
1218 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports); 1218 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports);
1219 if (!host) { 1219 if (!host) {
1220 dev_printk(KERN_ERR, &pdev->dev, "failed to allocate host\n"); 1220 dev_err(&pdev->dev, "failed to allocate host\n");
1221 return -ENOMEM; 1221 return -ENOMEM;
1222 } 1222 }
1223 host->iomap = pcim_iomap_table(pdev); 1223 host->iomap = pcim_iomap_table(pdev);
diff --git a/drivers/ata/sata_qstor.c b/drivers/ata/sata_qstor.c
index c5603265fa58..5702561e4e7d 100644
--- a/drivers/ata/sata_qstor.c
+++ b/drivers/ata/sata_qstor.c
@@ -563,21 +563,20 @@ static int qs_set_dma_masks(struct pci_dev *pdev, void __iomem *mmio_base)
563 if (rc) { 563 if (rc) {
564 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 564 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
565 if (rc) { 565 if (rc) {
566 dev_printk(KERN_ERR, &pdev->dev, 566 dev_err(&pdev->dev,
567 "64-bit DMA enable failed\n"); 567 "64-bit DMA enable failed\n");
568 return rc; 568 return rc;
569 } 569 }
570 } 570 }
571 } else { 571 } else {
572 rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 572 rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
573 if (rc) { 573 if (rc) {
574 dev_printk(KERN_ERR, &pdev->dev, 574 dev_err(&pdev->dev, "32-bit DMA enable failed\n");
575 "32-bit DMA enable failed\n");
576 return rc; 575 return rc;
577 } 576 }
578 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 577 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
579 if (rc) { 578 if (rc) {
580 dev_printk(KERN_ERR, &pdev->dev, 579 dev_err(&pdev->dev,
581 "32-bit consistent DMA enable failed\n"); 580 "32-bit consistent DMA enable failed\n");
582 return rc; 581 return rc;
583 } 582 }
diff --git a/drivers/ata/sata_sil.c b/drivers/ata/sata_sil.c
index b42edaaf3a53..fe16ee8f194b 100644
--- a/drivers/ata/sata_sil.c
+++ b/drivers/ata/sata_sil.c
@@ -676,8 +676,8 @@ static void sil_init_controller(struct ata_host *host)
676 writew(cls << 8 | cls, 676 writew(cls << 8 | cls,
677 mmio_base + sil_port[i].fifo_cfg); 677 mmio_base + sil_port[i].fifo_cfg);
678 } else 678 } else
679 dev_printk(KERN_WARNING, &pdev->dev, 679 dev_warn(&pdev->dev,
680 "cache line size not set. Driver may not function\n"); 680 "cache line size not set. Driver may not function\n");
681 681
682 /* Apply R_ERR on DMA activate FIS errata workaround */ 682 /* Apply R_ERR on DMA activate FIS errata workaround */
683 if (host->ports[0]->flags & SIL_FLAG_RERR_ON_DMA_ACT) { 683 if (host->ports[0]->flags & SIL_FLAG_RERR_ON_DMA_ACT) {
@@ -688,9 +688,8 @@ static void sil_init_controller(struct ata_host *host)
688 if ((tmp & 0x3) != 0x01) 688 if ((tmp & 0x3) != 0x01)
689 continue; 689 continue;
690 if (!cnt) 690 if (!cnt)
691 dev_printk(KERN_INFO, &pdev->dev, 691 dev_info(&pdev->dev,
692 "Applying R_ERR on DMA activate " 692 "Applying R_ERR on DMA activate FIS errata fix\n");
693 "FIS errata fix\n");
694 writel(tmp & ~0x3, mmio_base + sil_port[i].sfis_cfg); 693 writel(tmp & ~0x3, mmio_base + sil_port[i].sfis_cfg);
695 cnt++; 694 cnt++;
696 } 695 }
diff --git a/drivers/ata/sata_sil24.c b/drivers/ata/sata_sil24.c
index 06c564e55051..164d52ed6b62 100644
--- a/drivers/ata/sata_sil24.c
+++ b/drivers/ata/sata_sil24.c
@@ -1256,8 +1256,8 @@ static void sil24_init_controller(struct ata_host *host)
1256 PORT_CS_PORT_RST, 1256 PORT_CS_PORT_RST,
1257 PORT_CS_PORT_RST, 10, 100); 1257 PORT_CS_PORT_RST, 10, 100);
1258 if (tmp & PORT_CS_PORT_RST) 1258 if (tmp & PORT_CS_PORT_RST)
1259 dev_printk(KERN_ERR, host->dev, 1259 dev_err(host->dev,
1260 "failed to clear port RST\n"); 1260 "failed to clear port RST\n");
1261 } 1261 }
1262 1262
1263 /* configure port */ 1263 /* configure port */
@@ -1302,9 +1302,8 @@ static int sil24_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
1302 if (pi.flags & SIL24_FLAG_PCIX_IRQ_WOC) { 1302 if (pi.flags & SIL24_FLAG_PCIX_IRQ_WOC) {
1303 tmp = readl(iomap[SIL24_HOST_BAR] + HOST_CTRL); 1303 tmp = readl(iomap[SIL24_HOST_BAR] + HOST_CTRL);
1304 if (tmp & (HOST_CTRL_TRDY | HOST_CTRL_STOP | HOST_CTRL_DEVSEL)) 1304 if (tmp & (HOST_CTRL_TRDY | HOST_CTRL_STOP | HOST_CTRL_DEVSEL))
1305 dev_printk(KERN_INFO, &pdev->dev, 1305 dev_info(&pdev->dev,
1306 "Applying completion IRQ loss on PCI-X " 1306 "Applying completion IRQ loss on PCI-X errata fix\n");
1307 "errata fix\n");
1308 else 1307 else
1309 pi.flags &= ~SIL24_FLAG_PCIX_IRQ_WOC; 1308 pi.flags &= ~SIL24_FLAG_PCIX_IRQ_WOC;
1310 } 1309 }
@@ -1322,22 +1321,21 @@ static int sil24_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
1322 if (rc) { 1321 if (rc) {
1323 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 1322 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
1324 if (rc) { 1323 if (rc) {
1325 dev_printk(KERN_ERR, &pdev->dev, 1324 dev_err(&pdev->dev,
1326 "64-bit DMA enable failed\n"); 1325 "64-bit DMA enable failed\n");
1327 return rc; 1326 return rc;
1328 } 1327 }
1329 } 1328 }
1330 } else { 1329 } else {
1331 rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 1330 rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
1332 if (rc) { 1331 if (rc) {
1333 dev_printk(KERN_ERR, &pdev->dev, 1332 dev_err(&pdev->dev, "32-bit DMA enable failed\n");
1334 "32-bit DMA enable failed\n");
1335 return rc; 1333 return rc;
1336 } 1334 }
1337 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 1335 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
1338 if (rc) { 1336 if (rc) {
1339 dev_printk(KERN_ERR, &pdev->dev, 1337 dev_err(&pdev->dev,
1340 "32-bit consistent DMA enable failed\n"); 1338 "32-bit consistent DMA enable failed\n");
1341 return rc; 1339 return rc;
1342 } 1340 }
1343 } 1341 }
@@ -1350,7 +1348,7 @@ static int sil24_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
1350 sil24_init_controller(host); 1348 sil24_init_controller(host);
1351 1349
1352 if (sata_sil24_msi && !pci_enable_msi(pdev)) { 1350 if (sata_sil24_msi && !pci_enable_msi(pdev)) {
1353 dev_printk(KERN_INFO, &pdev->dev, "Using MSI\n"); 1351 dev_info(&pdev->dev, "Using MSI\n");
1354 pci_intx(pdev, 0); 1352 pci_intx(pdev, 0);
1355 } 1353 }
1356 1354
diff --git a/drivers/ata/sata_sis.c b/drivers/ata/sata_sis.c
index cdcc13e9cf51..ae040dee419e 100644
--- a/drivers/ata/sata_sis.c
+++ b/drivers/ata/sata_sis.c
@@ -203,7 +203,7 @@ static int sis_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
203 int i, rc; 203 int i, rc;
204 204
205 if (!printed_version++) 205 if (!printed_version++)
206 dev_printk(KERN_INFO, &pdev->dev, "version " DRV_VERSION "\n"); 206 dev_info(&pdev->dev, "version " DRV_VERSION "\n");
207 207
208 rc = pcim_enable_device(pdev); 208 rc = pcim_enable_device(pdev);
209 if (rc) 209 if (rc)
@@ -241,12 +241,12 @@ static int sis_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
241 break; 241 break;
242 } 242 }
243 if ((pmr & SIS_PMR_COMBINED) == 0) { 243 if ((pmr & SIS_PMR_COMBINED) == 0) {
244 dev_printk(KERN_INFO, &pdev->dev, 244 dev_info(&pdev->dev,
245 "Detected SiS 180/181/964 chipset in SATA mode\n"); 245 "Detected SiS 180/181/964 chipset in SATA mode\n");
246 port2_start = 64; 246 port2_start = 64;
247 } else { 247 } else {
248 dev_printk(KERN_INFO, &pdev->dev, 248 dev_info(&pdev->dev,
249 "Detected SiS 180/181 chipset in combined mode\n"); 249 "Detected SiS 180/181 chipset in combined mode\n");
250 port2_start = 0; 250 port2_start = 0;
251 pi.flags |= ATA_FLAG_SLAVE_POSS; 251 pi.flags |= ATA_FLAG_SLAVE_POSS;
252 } 252 }
@@ -256,24 +256,22 @@ static int sis_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
256 case 0x0183: 256 case 0x0183:
257 pci_read_config_dword(pdev, 0x6C, &val); 257 pci_read_config_dword(pdev, 0x6C, &val);
258 if (val & (1L << 31)) { 258 if (val & (1L << 31)) {
259 dev_printk(KERN_INFO, &pdev->dev, 259 dev_info(&pdev->dev, "Detected SiS 182/965 chipset\n");
260 "Detected SiS 182/965 chipset\n");
261 pi.flags |= ATA_FLAG_SLAVE_POSS; 260 pi.flags |= ATA_FLAG_SLAVE_POSS;
262 } else { 261 } else {
263 dev_printk(KERN_INFO, &pdev->dev, 262 dev_info(&pdev->dev, "Detected SiS 182/965L chipset\n");
264 "Detected SiS 182/965L chipset\n");
265 } 263 }
266 break; 264 break;
267 265
268 case 0x1182: 266 case 0x1182:
269 dev_printk(KERN_INFO, &pdev->dev, 267 dev_info(&pdev->dev,
270 "Detected SiS 1182/966/680 SATA controller\n"); 268 "Detected SiS 1182/966/680 SATA controller\n");
271 pi.flags |= ATA_FLAG_SLAVE_POSS; 269 pi.flags |= ATA_FLAG_SLAVE_POSS;
272 break; 270 break;
273 271
274 case 0x1183: 272 case 0x1183:
275 dev_printk(KERN_INFO, &pdev->dev, 273 dev_info(&pdev->dev,
276 "Detected SiS 1183/966/966L/968/680 controller in PATA mode\n"); 274 "Detected SiS 1183/966/966L/968/680 controller in PATA mode\n");
277 ppi[0] = &sis_info133_for_sata; 275 ppi[0] = &sis_info133_for_sata;
278 ppi[1] = &sis_info133_for_sata; 276 ppi[1] = &sis_info133_for_sata;
279 break; 277 break;
diff --git a/drivers/ata/sata_uli.c b/drivers/ata/sata_uli.c
index 235be717a713..3072fd3f11c6 100644
--- a/drivers/ata/sata_uli.c
+++ b/drivers/ata/sata_uli.c
@@ -155,7 +155,7 @@ static int uli_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
155 int n_ports, rc; 155 int n_ports, rc;
156 156
157 if (!printed_version++) 157 if (!printed_version++)
158 dev_printk(KERN_INFO, &pdev->dev, "version " DRV_VERSION "\n"); 158 dev_info(&pdev->dev, "version " DRV_VERSION "\n");
159 159
160 rc = pcim_enable_device(pdev); 160 rc = pcim_enable_device(pdev);
161 if (rc) 161 if (rc)
diff --git a/drivers/ata/sata_via.c b/drivers/ata/sata_via.c
index 54434db15b12..9b43ccbcc915 100644
--- a/drivers/ata/sata_via.c
+++ b/drivers/ata/sata_via.c
@@ -469,7 +469,7 @@ static int vt6420_prepare_host(struct pci_dev *pdev, struct ata_host **r_host)
469 469
470 rc = pcim_iomap_regions(pdev, 1 << 5, DRV_NAME); 470 rc = pcim_iomap_regions(pdev, 1 << 5, DRV_NAME);
471 if (rc) { 471 if (rc) {
472 dev_printk(KERN_ERR, &pdev->dev, "failed to iomap PCI BAR 5\n"); 472 dev_err(&pdev->dev, "failed to iomap PCI BAR 5\n");
473 return rc; 473 return rc;
474 } 474 }
475 475
@@ -488,14 +488,14 @@ static int vt6421_prepare_host(struct pci_dev *pdev, struct ata_host **r_host)
488 488
489 *r_host = host = ata_host_alloc_pinfo(&pdev->dev, ppi, ARRAY_SIZE(ppi)); 489 *r_host = host = ata_host_alloc_pinfo(&pdev->dev, ppi, ARRAY_SIZE(ppi));
490 if (!host) { 490 if (!host) {
491 dev_printk(KERN_ERR, &pdev->dev, "failed to allocate host\n"); 491 dev_err(&pdev->dev, "failed to allocate host\n");
492 return -ENOMEM; 492 return -ENOMEM;
493 } 493 }
494 494
495 rc = pcim_iomap_regions(pdev, 0x3f, DRV_NAME); 495 rc = pcim_iomap_regions(pdev, 0x3f, DRV_NAME);
496 if (rc) { 496 if (rc) {
497 dev_printk(KERN_ERR, &pdev->dev, "failed to request/iomap " 497 dev_err(&pdev->dev, "failed to request/iomap PCI BARs (errno=%d)\n",
498 "PCI BARs (errno=%d)\n", rc); 498 rc);
499 return rc; 499 return rc;
500 } 500 }
501 host->iomap = pcim_iomap_table(pdev); 501 host->iomap = pcim_iomap_table(pdev);
@@ -526,7 +526,7 @@ static int vt8251_prepare_host(struct pci_dev *pdev, struct ata_host **r_host)
526 526
527 rc = pcim_iomap_regions(pdev, 1 << 5, DRV_NAME); 527 rc = pcim_iomap_regions(pdev, 1 << 5, DRV_NAME);
528 if (rc) { 528 if (rc) {
529 dev_printk(KERN_ERR, &pdev->dev, "failed to iomap PCI BAR 5\n"); 529 dev_err(&pdev->dev, "failed to iomap PCI BAR 5\n");
530 return rc; 530 return rc;
531 } 531 }
532 532
@@ -542,8 +542,8 @@ static void svia_configure(struct pci_dev *pdev, int board_id)
542 u8 tmp8; 542 u8 tmp8;
543 543
544 pci_read_config_byte(pdev, PCI_INTERRUPT_LINE, &tmp8); 544 pci_read_config_byte(pdev, PCI_INTERRUPT_LINE, &tmp8);
545 dev_printk(KERN_INFO, &pdev->dev, "routed to hard irq line %d\n", 545 dev_info(&pdev->dev, "routed to hard irq line %d\n",
546 (int) (tmp8 & 0xf0) == 0xf0 ? 0 : tmp8 & 0x0f); 546 (int) (tmp8 & 0xf0) == 0xf0 ? 0 : tmp8 & 0x0f);
547 547
548 /* make sure SATA channels are enabled */ 548 /* make sure SATA channels are enabled */
549 pci_read_config_byte(pdev, SATA_CHAN_ENAB, &tmp8); 549 pci_read_config_byte(pdev, SATA_CHAN_ENAB, &tmp8);
@@ -628,7 +628,7 @@ static int svia_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
628 for (i = 0; i < ARRAY_SIZE(svia_bar_sizes); i++) 628 for (i = 0; i < ARRAY_SIZE(svia_bar_sizes); i++)
629 if ((pci_resource_start(pdev, i) == 0) || 629 if ((pci_resource_start(pdev, i) == 0) ||
630 (pci_resource_len(pdev, i) < bar_sizes[i])) { 630 (pci_resource_len(pdev, i) < bar_sizes[i])) {
631 dev_printk(KERN_ERR, &pdev->dev, 631 dev_err(&pdev->dev,
632 "invalid PCI BAR %u (sz 0x%llx, val 0x%llx)\n", 632 "invalid PCI BAR %u (sz 0x%llx, val 0x%llx)\n",
633 i, 633 i,
634 (unsigned long long)pci_resource_start(pdev, i), 634 (unsigned long long)pci_resource_start(pdev, i),
diff --git a/drivers/ata/sata_vsc.c b/drivers/ata/sata_vsc.c
index 7c987371136e..dcd57b04d36a 100644
--- a/drivers/ata/sata_vsc.c
+++ b/drivers/ata/sata_vsc.c
@@ -273,9 +273,8 @@ static irqreturn_t vsc_sata_interrupt(int irq, void *dev_instance)
273 273
274 if (unlikely(status == 0xffffffff || status == 0)) { 274 if (unlikely(status == 0xffffffff || status == 0)) {
275 if (status) 275 if (status)
276 dev_printk(KERN_ERR, host->dev, 276 dev_err(host->dev,
277 ": IRQ status == 0xffffffff, " 277 ": IRQ status == 0xffffffff, PCI fault or device removal?\n");
278 "PCI fault or device removal?\n");
279 goto out; 278 goto out;
280 } 279 }
281 280