diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2014-01-02 18:40:30 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-01-05 05:43:28 -0500 |
commit | ec06b2bea73ed0db1e400ff5143c14e31836a77c (patch) | |
tree | 71992205812fc0162489a37339c2b2f84e57a3db | |
parent | b2c53e206967d01fd4fb6dd525f89ae738beb2e6 (diff) |
ALSA: cs5535audio: use named constants for pci_power_t values
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@@
expression pdev;
@@
pci_set_power_state(pdev,
- 3
+ PCI_D3hot
)
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/cs5535audio/cs5535audio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/cs5535audio/cs5535audio.c b/sound/pci/cs5535audio/cs5535audio.c index 902bebd3b3fb..c0d2835344da 100644 --- a/sound/pci/cs5535audio/cs5535audio.c +++ b/sound/pci/cs5535audio/cs5535audio.c | |||
@@ -253,7 +253,7 @@ static irqreturn_t snd_cs5535audio_interrupt(int irq, void *dev_id) | |||
253 | static int snd_cs5535audio_free(struct cs5535audio *cs5535au) | 253 | static int snd_cs5535audio_free(struct cs5535audio *cs5535au) |
254 | { | 254 | { |
255 | synchronize_irq(cs5535au->irq); | 255 | synchronize_irq(cs5535au->irq); |
256 | pci_set_power_state(cs5535au->pci, 3); | 256 | pci_set_power_state(cs5535au->pci, PCI_D3hot); |
257 | 257 | ||
258 | if (cs5535au->irq >= 0) | 258 | if (cs5535au->irq >= 0) |
259 | free_irq(cs5535au->irq, cs5535au); | 259 | free_irq(cs5535au->irq, cs5535au); |