Commit 44411e07 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: ca0106 - Check return value of pci_enable_device() in resume

The return value of pci_enable_device() must be checked even in resume
callback:
  sound/pci/ca0106/ca0106_main.c:1779: warning: ignoring return value of ‘pci_enable_device’, declared with attribute warn_unused_result
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 5da95273
......@@ -1776,7 +1776,12 @@ static int snd_ca0106_resume(struct pci_dev *pci)
pci_set_power_state(pci, PCI_D0);
pci_restore_state(pci);
pci_enable_device(pci);
if (pci_enable_device(pci) < 0) {
snd_card_disconnect(card);
return -EIO;
}
pci_set_master(pci);
ca0106_init_chip(chip);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment