Merge remote-tracking branches 'regulator/fix/bcm590xx', 'regulator/fix/palmas' and...
[firefly-linux-kernel-4.4.55.git] / sound / pci / hda / hda_intel.c
index bb65a124e00689657cc7674a25202f4df3b60249..23fd6b9aecca53ef0e13a74576ac54d2d47736db 100644 (file)
@@ -1656,8 +1656,13 @@ static int azx_probe_continue(struct azx *chip)
                                "Error request power-well from i915\n");
                        goto out_free;
                }
+               err = hda_display_power(true);
+               if (err < 0) {
+                       dev_err(chip->card->dev,
+                               "Cannot turn on display power on i915\n");
+                       goto out_free;
+               }
 #endif
-               hda_display_power(true);
        }
 
        err = azx_first_init(chip);