|
@@ -1218,8 +1218,10 @@ static int azx_free(struct azx *chip)
|
|
if (use_vga_switcheroo(hda)) {
|
|
if (use_vga_switcheroo(hda)) {
|
|
if (chip->disabled && hda->probe_continued)
|
|
if (chip->disabled && hda->probe_continued)
|
|
snd_hda_unlock_devices(&chip->bus);
|
|
snd_hda_unlock_devices(&chip->bus);
|
|
- if (hda->vga_switcheroo_registered)
|
|
|
|
|
|
+ if (hda->vga_switcheroo_registered) {
|
|
vga_switcheroo_unregister_client(chip->pci);
|
|
vga_switcheroo_unregister_client(chip->pci);
|
|
|
|
+ vga_switcheroo_fini_domain_pm_ops(chip->card->dev);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
if (bus->chip_init) {
|
|
if (bus->chip_init) {
|