ASoC: AMD: Fix Kconfig warning without GPIOLIB
authorYueHaibing <yuehaibing@huawei.com>
Thu, 22 Aug 2019 14:30:07 +0000 (22:30 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 22 Aug 2019 17:23:23 +0000 (18:23 +0100)
While do rand build without GPIOLIB, we get Kconfig warning:\

WARNING: unmet direct dependencies detected for SND_SOC_MAX98357A
  Depends on [n]: SOUND [=y] && !UML && SND [=m] && SND_SOC [=m] && GPIOLIB [=n]
  Selected by [m]:
  - SND_SOC_AMD_CZ_DA7219MX98357_MACH [=m] && SOUND [=y] && !UML && SND [=m] && SND_SOC [=m] && SND_SOC_AMD_ACP [=m] && I2C [=y]

Add GPIOLIB dependency to fix this.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20190822143007.73644-1-yuehaibing@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/Kconfig

index 9ca9214..5f40517 100644 (file)
@@ -10,7 +10,7 @@ config SND_SOC_AMD_CZ_DA7219MX98357_MACH
        select SND_SOC_MAX98357A
        select SND_SOC_ADAU7002
        select REGULATOR
-       depends on SND_SOC_AMD_ACP && I2C
+       depends on SND_SOC_AMD_ACP && I2C && GPIOLIB
        help
         This option enables machine driver for DA7219 and MAX9835.