diff options
author | Joe Perches <joe@perches.com> | 2011-04-15 18:51:58 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2011-07-23 17:57:36 -0400 |
commit | a44fec1fce5d5d14cc3ac4545b8da346394de666 (patch) | |
tree | fa3d16a4c8f1a6a7e9af867f16f7201a5b5442f9 /drivers/ata/sata_qstor.c | |
parent | 02f8c6aee8df3cdc935e9bdd4f2d020306035dbe (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/sata_qstor.c')
-rw-r--r-- | drivers/ata/sata_qstor.c | 9 |
1 files changed, 4 insertions, 5 deletions
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 | } |