From: Takashi Iwai Subject: Re: [PATCH] ALSA: hda - remove check on CONFIG_SND_HDA_I915 in azx_probe_continue() Date: Thu, 30 Apr 2015 09:17:28 +0200 Message-ID: References: <1430377818-21567-1-git-send-email-mengdong.lin@intel.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id CF6472606E7 for ; Thu, 30 Apr 2015 09:17:28 +0200 (CEST) In-Reply-To: <1430377818-21567-1-git-send-email-mengdong.lin@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: mengdong.lin@intel.com Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Thu, 30 Apr 2015 15:10:18 +0800, mengdong.lin@intel.com wrote: > > From: Mengdong Lin > > This is to avoid a build warning that label 'i915_power_fail' is defined > but not used. > > There are already fake hda_i915 functions when CONFIG_SND_HDA_I915 is not > defined, and error message for missing CONFIG_SND_HDA_I915 for the HD-A > controller or codec that depends on i915 power well. > > Signed-off-by: Mengdong Lin It's not enough since hda_i915_init() returns an error for CONFIG_SND_HDA_I915=n. But I already fixed it, so don't worry about this. Takashi > > diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c > index 5aa5cfa..87df90d 100644 > --- a/sound/pci/hda/hda_intel.c > +++ b/sound/pci/hda/hda_intel.c > @@ -1907,8 +1907,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; > @@ -1919,7 +1917,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); > -- > 1.9.1 >