aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/acard-ahci.c
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/acard-ahci.c
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/acard-ahci.c')
-rw-r--r--drivers/ata/acard-ahci.c23
1 files changed, 10 insertions, 13 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) {