aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/sis7019.c
diff options
context:
space:
mode:
authorDavid Dillow <dave@thedillows.org>2011-12-01 23:26:57 -0500
committerTakashi Iwai <tiwai@suse.de>2011-12-02 04:44:01 -0500
commit705978516fe4a5e0b5726e2ea860c1bfc6909472 (patch)
treeffc7ca1365592afccd8fb0ca36e7001d740e4865 /sound/pci/sis7019.c
parentb1ac29620b09f1c224c83d764675dcfaf8dd068b (diff)
ALSA: sis7019 - convert to dev_*() logging
Signed-off-by: David Dillow <dave@thedillows.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/sis7019.c')
-rw-r--r--sound/pci/sis7019.c29
1 files changed, 14 insertions, 15 deletions
diff --git a/sound/pci/sis7019.c b/sound/pci/sis7019.c
index 28dfafb56dd1..7331b2d649ca 100644
--- a/sound/pci/sis7019.c
+++ b/sound/pci/sis7019.c
@@ -983,7 +983,7 @@ timeout:
983 mutex_unlock(&sis->ac97_mutex); 983 mutex_unlock(&sis->ac97_mutex);
984 984
985 if (!count) { 985 if (!count) {
986 printk(KERN_ERR "sis7019: ac97 codec %d timeout cmd 0x%08x\n", 986 dev_err(&sis->pci->dev, "ac97 codec %d timeout cmd 0x%08x\n",
987 codec, cmd); 987 codec, cmd);
988 } 988 }
989 989
@@ -1142,13 +1142,13 @@ static int sis_chip_init(struct sis7019 *sis)
1142 /* All done, check for errors. 1142 /* All done, check for errors.
1143 */ 1143 */
1144 if (!sis->codecs_present) { 1144 if (!sis->codecs_present) {
1145 printk(KERN_ERR "sis7019: could not find any codecs\n"); 1145 dev_err(&sis->pci->dev, "could not find any codecs\n");
1146 return -EIO; 1146 return -EIO;
1147 } 1147 }
1148 1148
1149 if (sis->codecs_present != codecs) { 1149 if (sis->codecs_present != codecs) {
1150 printk(KERN_WARNING "sis7019: missing codecs, found %0x, expected %0x\n", 1150 dev_warn(&sis->pci->dev, "missing codecs, found %0x, expected %0x\n",
1151 sis->codecs_present, codecs); 1151 sis->codecs_present, codecs);
1152 } 1152 }
1153 1153
1154 /* Let the hardware know that the audio driver is alive, 1154 /* Let the hardware know that the audio driver is alive,
@@ -1256,18 +1256,18 @@ static int sis_resume(struct pci_dev *pci)
1256 pci_restore_state(pci); 1256 pci_restore_state(pci);
1257 1257
1258 if (pci_enable_device(pci) < 0) { 1258 if (pci_enable_device(pci) < 0) {
1259 printk(KERN_ERR "sis7019: unable to re-enable device\n"); 1259 dev_err(&pci->dev, "unable to re-enable device\n");
1260 goto error; 1260 goto error;
1261 } 1261 }
1262 1262
1263 if (sis_chip_init(sis)) { 1263 if (sis_chip_init(sis)) {
1264 printk(KERN_ERR "sis7019: unable to re-init controller\n"); 1264 dev_err(&pci->dev, "unable to re-init controller\n");
1265 goto error; 1265 goto error;
1266 } 1266 }
1267 1267
1268 if (request_irq(pci->irq, sis_interrupt, IRQF_SHARED, 1268 if (request_irq(pci->irq, sis_interrupt, IRQF_SHARED,
1269 KBUILD_MODNAME, sis)) { 1269 KBUILD_MODNAME, sis)) {
1270 printk(KERN_ERR "sis7019: unable to regain IRQ %d\n", pci->irq); 1270 dev_err(&pci->dev, "unable to regain IRQ %d\n", pci->irq);
1271 goto error; 1271 goto error;
1272 } 1272 }
1273 1273
@@ -1335,8 +1335,7 @@ static int __devinit sis_chip_create(struct snd_card *card,
1335 goto error_out; 1335 goto error_out;
1336 1336
1337 if (pci_set_dma_mask(pci, DMA_BIT_MASK(30)) < 0) { 1337 if (pci_set_dma_mask(pci, DMA_BIT_MASK(30)) < 0) {
1338 printk(KERN_ERR "sis7019: architecture does not support " 1338 dev_err(&pci->dev, "architecture does not support 30-bit PCI busmaster DMA");
1339 "30-bit PCI busmaster DMA");
1340 goto error_out_enabled; 1339 goto error_out_enabled;
1341 } 1340 }
1342 1341
@@ -1350,20 +1349,20 @@ static int __devinit sis_chip_create(struct snd_card *card,
1350 1349
1351 rc = pci_request_regions(pci, "SiS7019"); 1350 rc = pci_request_regions(pci, "SiS7019");
1352 if (rc) { 1351 if (rc) {
1353 printk(KERN_ERR "sis7019: unable request regions\n"); 1352 dev_err(&pci->dev, "unable request regions\n");
1354 goto error_out_enabled; 1353 goto error_out_enabled;
1355 } 1354 }
1356 1355
1357 rc = -EIO; 1356 rc = -EIO;
1358 sis->ioaddr = ioremap_nocache(pci_resource_start(pci, 1), 0x4000); 1357 sis->ioaddr = ioremap_nocache(pci_resource_start(pci, 1), 0x4000);
1359 if (!sis->ioaddr) { 1358 if (!sis->ioaddr) {
1360 printk(KERN_ERR "sis7019: unable to remap MMIO, aborting\n"); 1359 dev_err(&pci->dev, "unable to remap MMIO, aborting\n");
1361 goto error_out_cleanup; 1360 goto error_out_cleanup;
1362 } 1361 }
1363 1362
1364 rc = sis_alloc_suspend(sis); 1363 rc = sis_alloc_suspend(sis);
1365 if (rc < 0) { 1364 if (rc < 0) {
1366 printk(KERN_ERR "sis7019: unable to allocate state storage\n"); 1365 dev_err(&pci->dev, "unable to allocate state storage\n");
1367 goto error_out_cleanup; 1366 goto error_out_cleanup;
1368 } 1367 }
1369 1368
@@ -1371,9 +1370,9 @@ static int __devinit sis_chip_create(struct snd_card *card,
1371 if (rc) 1370 if (rc)
1372 goto error_out_cleanup; 1371 goto error_out_cleanup;
1373 1372
1374 if (request_irq(pci->irq, sis_interrupt, IRQF_SHARED, 1373 if (request_irq(pci->irq, sis_interrupt, IRQF_SHARED, KBUILD_MODNAME,
1375 KBUILD_MODNAME, sis)) { 1374 sis)) {
1376 printk(KERN_ERR "unable to allocate irq %d\n", sis->irq); 1375 dev_err(&pci->dev, "unable to allocate irq %d\n", sis->irq);
1377 goto error_out_cleanup; 1376 goto error_out_cleanup;
1378 } 1377 }
1379 1378