]> git.ipfire.org Git - thirdparty/linux.git/commit
ALSA: hda/tegra: avoid build error without CONFIG_PM
authorArnd Bergmann <arnd@arndb.de>
Mon, 4 Mar 2019 20:33:25 +0000 (21:33 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 13 Mar 2019 10:27:54 +0000 (11:27 +0100)
commit7472946915aad1cc751cce3edfd8c1fd5c845834
treebe6d84492a1e34ea03677091da5be8d69d49744e
parenta2c6433ee5a35a8de6d563f6512a26f87835ea0f
ALSA: hda/tegra: avoid build error without CONFIG_PM

The #ifdef protection around the PM functions is wrong, leading to
a failed reference in some configurations:

sound/pci/hda/hda_tegra.c: In function 'hda_tegra_runtime_suspend':
sound/pci/hda/hda_tegra.c:273:2: error: implicit declaration of function 'hda_tegra_disable_clocks'; did you mean 'hda_tegra_enable_clocks'? [-Werror=implicit-function-declaration]

Better remove the #ifdefs entirely and rely on the compiler silently
dropping unused functions marked __maybe_unused.

Fixes: 707e0759f2f4 ("ALSA: hda/tegra: implement runtime suspend/resume")
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_tegra.c