diff options
Diffstat (limited to 'sound/pci/vx222/vx222.c')
| -rw-r--r-- | sound/pci/vx222/vx222.c | 12 | 
1 files changed, 5 insertions, 7 deletions
diff --git a/sound/pci/vx222/vx222.c b/sound/pci/vx222/vx222.c index ab8a9b1bfb8..ff9074d2260 100644 --- a/sound/pci/vx222/vx222.c +++ b/sound/pci/vx222/vx222.c @@ -170,7 +170,7 @@ static int snd_vx222_create(struct snd_card *card, struct pci_dev *pci,  	if (request_irq(pci->irq, snd_vx_irq_handler, IRQF_SHARED,  			KBUILD_MODNAME, chip)) { -		snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq); +		dev_err(card->dev, "unable to grab IRQ %d\n", pci->irq);  		snd_vx222_free(chip);  		return -EBUSY;  	} @@ -181,8 +181,6 @@ static int snd_vx222_create(struct snd_card *card, struct pci_dev *pci,  		return err;  	} -	snd_card_set_dev(card, &pci->dev); -  	*rchip = vx;  	return 0;  } @@ -204,7 +202,8 @@ static int snd_vx222_probe(struct pci_dev *pci,  		return -ENOENT;  	} -	err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card); +	err = snd_card_new(&pci->dev, index[dev], id[dev], THIS_MODULE, +			   0, &card);  	if (err < 0)  		return err; @@ -229,7 +228,7 @@ static int snd_vx222_probe(struct pci_dev *pci,  	sprintf(card->longname, "%s at 0x%lx & 0x%lx, irq %i",  		card->shortname, vx->port[0], vx->port[1], vx->core.irq); -	snd_printdd("%s at 0x%lx & 0x%lx, irq %i\n", +	dev_dbg(card->dev, "%s at 0x%lx & 0x%lx, irq %i\n",  		    card->shortname, vx->port[0], vx->port[1], vx->core.irq);  #ifdef SND_VX_FW_LOADER @@ -280,8 +279,7 @@ static int snd_vx222_resume(struct device *dev)  	pci_set_power_state(pci, PCI_D0);  	pci_restore_state(pci);  	if (pci_enable_device(pci) < 0) { -		printk(KERN_ERR "vx222: pci_enable_device failed, " -		       "disabling device\n"); +		dev_err(dev, "pci_enable_device failed, disabling device\n");  		snd_card_disconnect(card);  		return -EIO;  	}  | 
