projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ALSA: rme9652: don't disable if not enabled
[linux-2.6-microblaze.git]
/
sound
/
pci
/
rme9652
/
rme9652.c
diff --git
a/sound/pci/rme9652/rme9652.c
b/sound/pci/rme9652/rme9652.c
index
012fbec
..
0f4ab86
100644
(file)
--- a/
sound/pci/rme9652/rme9652.c
+++ b/
sound/pci/rme9652/rme9652.c
@@
-1733,7
+1733,8
@@
static int snd_rme9652_free(struct snd_rme9652 *rme9652)
if (rme9652->port)
pci_release_regions(rme9652->pci);
- pci_disable_device(rme9652->pci);
+ if (pci_is_enabled(rme9652->pci))
+ pci_disable_device(rme9652->pci);
return 0;
}