diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-02-28 10:54:43 (GMT) |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-02-28 10:54:43 (GMT) |
commit | 2b9e4a73fbd90cb8459cf84c12ae05d2eb81da41 (patch) | |
tree | 52800decb82a6f478611a41b1592a9a0c7ae75a6 /sound/usb/6fire/chip.c | |
parent | e8b99a1dcb49b0d362b19a4831a00d85c76bd4b3 (diff) | |
parent | e3b3757b92a4df4addff74e179438afbfd8bb643 (diff) | |
download | linux-2b9e4a73fbd90cb8459cf84c12ae05d2eb81da41.tar.xz |
Merge branch 'topic/cvt-dev-prints' into for-next
This merges the bunch of changes over pci and usb sound drivers to
convert to dev_err() and co.
Diffstat (limited to 'sound/usb/6fire/chip.c')
-rw-r--r-- | sound/usb/6fire/chip.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/usb/6fire/chip.c b/sound/usb/6fire/chip.c index e0fe0d9..dcddfc3 100644 --- a/sound/usb/6fire/chip.c +++ b/sound/usb/6fire/chip.c @@ -106,7 +106,7 @@ static int usb6fire_chip_probe(struct usb_interface *intf, } if (regidx < 0) { mutex_unlock(®ister_mutex); - snd_printk(KERN_ERR PREFIX "too many cards registered.\n"); + dev_err(&intf->dev, "too many cards registered.\n"); return -ENODEV; } devices[regidx] = device; @@ -121,13 +121,13 @@ static int usb6fire_chip_probe(struct usb_interface *intf, /* if we are here, card can be registered in alsa. */ if (usb_set_interface(device, 0, 0) != 0) { - snd_printk(KERN_ERR PREFIX "can't set first interface.\n"); + dev_err(&intf->dev, "can't set first interface.\n"); return -EIO; } ret = snd_card_new(&intf->dev, index[regidx], id[regidx], THIS_MODULE, sizeof(struct sfire_chip), &card); if (ret < 0) { - snd_printk(KERN_ERR PREFIX "cannot create alsa card.\n"); + dev_err(&intf->dev, "cannot create alsa card.\n"); return ret; } strcpy(card->driver, "6FireUSB"); @@ -168,7 +168,7 @@ static int usb6fire_chip_probe(struct usb_interface *intf, ret = snd_card_register(card); if (ret < 0) { - snd_printk(KERN_ERR PREFIX "cannot register card."); + dev_err(&intf->dev, "cannot register card."); usb6fire_chip_destroy(chip); return ret; } |