]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.14.40/alsa-hda-fix-incorrect-usage-of-is_reachable.patch
Linux 4.14.95
[thirdparty/kernel/stable-queue.git] / releases / 4.14.40 / alsa-hda-fix-incorrect-usage-of-is_reachable.patch
1 From 6a30abaa40b62aed46ef12ea4c16c48565bdb376 Mon Sep 17 00:00:00 2001
2 From: Takashi Iwai <tiwai@suse.de>
3 Date: Fri, 27 Apr 2018 17:17:35 +0200
4 Subject: ALSA: hda - Fix incorrect usage of IS_REACHABLE()
5
6 From: Takashi Iwai <tiwai@suse.de>
7
8 commit 6a30abaa40b62aed46ef12ea4c16c48565bdb376 upstream.
9
10 The commit c469652bb5e8 ("ALSA: hda - Use IS_REACHABLE() for
11 dependency on input") simplified the dependencies with IS_REACHABLE()
12 macro, but it broke due to its incorrect usage: it should have been
13 IS_REACHABLE(CONFIG_INPUT) instead of IS_REACHABLE(INPUT).
14
15 Fixes: c469652bb5e8 ("ALSA: hda - Use IS_REACHABLE() for dependency on input")
16 Cc: <stable@vger.kernel.org>
17 Signed-off-by: Takashi Iwai <tiwai@suse.de>
18 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
19
20 ---
21 sound/pci/hda/patch_realtek.c | 2 +-
22 1 file changed, 1 insertion(+), 1 deletion(-)
23
24 --- a/sound/pci/hda/patch_realtek.c
25 +++ b/sound/pci/hda/patch_realtek.c
26 @@ -3722,7 +3722,7 @@ static void alc280_fixup_hp_gpio4(struct
27 }
28 }
29
30 -#if IS_REACHABLE(INPUT)
31 +#if IS_REACHABLE(CONFIG_INPUT)
32 static void gpio2_mic_hotkey_event(struct hda_codec *codec,
33 struct hda_jack_callback *event)
34 {