diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-01-08 14:45:55 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-01-09 18:24:20 +0300 |
commit | 7247aabd5ace16677681f815cc34f84ef0278261 (patch) | |
tree | 1c4190dabaca04fc5ef0206945fc569eec72a863 /sound/pci/ctxfi/cthw20k1.c | |
parent | b8375122b59b1362e94ccd8502cff3cfef4cf168 (diff) | |
download | linux-7247aabd5ace16677681f815cc34f84ef0278261.tar.xz |
ALSA: ctxfi: Simplify PM callbacks
This is a similar cleanup like the commit [3db084fd0af5: ALSA: fm801:
PCI core handles power state for us].
Since pci_set_power_state(), pci_save_state() and pci_restore_state()
are already done in the PCI core side, so we don't need to it doubly.
Also, pci_enable_device(), pci_disable_device() and pci_set_master()
calls in PM callbacks are superfluous nowadays, too, so get rid of
them as well.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ctxfi/cthw20k1.c')
-rw-r--r-- | sound/pci/ctxfi/cthw20k1.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sound/pci/ctxfi/cthw20k1.c b/sound/pci/ctxfi/cthw20k1.c index b425aa8ee578..f16bec129c0a 100644 --- a/sound/pci/ctxfi/cthw20k1.c +++ b/sound/pci/ctxfi/cthw20k1.c @@ -2099,20 +2099,11 @@ static int hw_suspend(struct hw *hw) pci_write_config_dword(pci, UAA_CFG_SPACE_FLAG, 0x0); } - pci_disable_device(pci); - pci_save_state(pci); - pci_set_power_state(pci, PCI_D3hot); - return 0; } static int hw_resume(struct hw *hw, struct card_conf *info) { - struct pci_dev *pci = hw->pci; - - pci_set_power_state(pci, PCI_D0); - pci_restore_state(pci); - /* Re-initialize card hardware. */ return hw_card_init(hw, info); } |