diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-12-10 02:27:19 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-12-10 02:30:40 -0500 |
commit | 44411e07c2ce1a755a756e10b592cd3ba02f99b3 (patch) | |
tree | 534bd193dee1aad53e6fb0f403b0aa5fdf6b86b9 /sound/pci/ca0106 | |
parent | 5da95273c2e63c9607652b5e8dd39808b6992d7c (diff) |
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: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ca0106')
-rw-r--r-- | sound/pci/ca0106/ca0106_main.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sound/pci/ca0106/ca0106_main.c b/sound/pci/ca0106/ca0106_main.c index cea8a7cdb1d5..c13aa41a35b4 100644 --- a/sound/pci/ca0106/ca0106_main.c +++ b/sound/pci/ca0106/ca0106_main.c | |||
@@ -1776,7 +1776,12 @@ static int snd_ca0106_resume(struct pci_dev *pci) | |||
1776 | 1776 | ||
1777 | pci_set_power_state(pci, PCI_D0); | 1777 | pci_set_power_state(pci, PCI_D0); |
1778 | pci_restore_state(pci); | 1778 | pci_restore_state(pci); |
1779 | pci_enable_device(pci); | 1779 | |
1780 | if (pci_enable_device(pci) < 0) { | ||
1781 | snd_card_disconnect(card); | ||
1782 | return -EIO; | ||
1783 | } | ||
1784 | |||
1780 | pci_set_master(pci); | 1785 | pci_set_master(pci); |
1781 | 1786 | ||
1782 | ca0106_init_chip(chip); | 1787 | ca0106_init_chip(chip); |