summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_intel.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-04-30 08:22:41 +0200
committerTakashi Iwai <tiwai@suse.de>2015-04-30 08:22:41 +0200
commit31c648e0d304bbfc49a4a22c6139718367f3fd8d (patch)
tree5a335414d328dcb0f3279263671423f941c7ac29 /sound/pci/hda/hda_intel.c
parent2bd1f73f4242ee19d8c610bcffe6e7a813451ce0 (diff)
downloadop-kernel-dev-31c648e0d304bbfc49a4a22c6139718367f3fd8d.zip
op-kernel-dev-31c648e0d304bbfc49a4a22c6139718367f3fd8d.tar.gz
ALSA: hda - Reduce ifdef CONFIG_SND_HDA_I915
We're providing dummy functions for CONFIG_SND_HDA_i915=n, thus ifdef can be reduced. (But hda_i915_init() has to be fixed to return zero.) This automatically fixes a compile warning: sound/pci/hda/hda_intel.c: In function 'azx_probe_continue': sound/pci/hda/hda_intel.c:1966:1: warning: label 'i915_power_fail' defined but not used [-Wunused-label] Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_intel.c')
-rw-r--r--sound/pci/hda/hda_intel.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index 9253b71..f7cdf4d 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -1904,8 +1904,6 @@ static int azx_probe_continue(struct azx *chip)
if (pci->device != 0x0f04 && pci->device != 0x2284)
hda->need_i915_power = 1;
-
-#ifdef CONFIG_SND_HDA_I915
err = hda_i915_init(hda);
if (err < 0)
goto i915_power_fail;
@@ -1916,7 +1914,6 @@ static int azx_probe_continue(struct azx *chip)
"Cannot turn on display power on i915\n");
goto i915_power_fail;
}
-#endif
}
err = azx_first_init(chip);
OpenPOWER on IntegriCloud