aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-08-22 06:02:31 -0400
committerTakashi Iwai <tiwai@suse.de>2013-08-22 06:04:47 -0400
commite58a244ff9ae264df1bf0fc8f09ecc135dbe3d0f (patch)
tree4e2b8fe5b1e8ce6afe33e785c10ea677b85e0bf5 /sound/pci
parentcd217a6395ae1b14cd70908e190f566b8bbd282f (diff)
ALSA: rme96: Check the return value of pci_enable_device() in resume callback
Fixing warning message: sound/pci/rme96.c: In function ‘snd_rme96_resume’: sound/pci/rme96.c:2418:19: warning: ignoring return value of ‘pci_enable_device’, declared with attribute warn_unused_result [-Wunused-result] Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/rme96.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/pci/rme96.c b/sound/pci/rme96.c
index 0506530de5a5..9d2a81fcbdad 100644
--- a/sound/pci/rme96.c
+++ b/sound/pci/rme96.c
@@ -2415,7 +2415,11 @@ snd_rme96_resume(struct pci_dev *pci)
2415 struct rme96 *rme96 = card->private_data; 2415 struct rme96 *rme96 = card->private_data;
2416 2416
2417 pci_restore_state(pci); 2417 pci_restore_state(pci);
2418 pci_enable_device(pci); 2418 if (pci_enable_device(pci) < 0) {
2419 printk(KERN_ERR "rme96: pci_enable_device failed, disabling device\n");
2420 snd_card_disconnect(card);
2421 return -EIO;
2422 }
2419 2423
2420 /* reset playback and record buffer pointers */ 2424 /* reset playback and record buffer pointers */
2421 writel(0, rme96->iobase + RME96_IO_SET_PLAY_POS 2425 writel(0, rme96->iobase + RME96_IO_SET_PLAY_POS