ASoC: rt286: Add depends on I2C
diff mbox

Message ID 1412301307-16819-1-git-send-email-bardliao@realtek.com
State Accepted
Commit a577483b6906b3d7aba9cc07e383682fc9b65318
Headers show

Commit Message

Bard Liao Oct. 3, 2014, 1:55 a.m. UTC
rt286 use I2C as its I/O. So the driver can only available when
I2C is selected.

Signed-off-by: Bard Liao <bardliao@realtek.com>
---
 sound/soc/codecs/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Mark Brown Oct. 3, 2014, 10:19 a.m. UTC | #1
On Fri, Oct 03, 2014 at 09:55:07AM +0800, Bard Liao wrote:
> rt286 use I2C as its I/O. So the driver can only available when
> I2C is selected.

>  config SND_SOC_RT286
>  	tristate
> +	depends on I2C

This won't actually do anything - since the symbol SND_SOC_RT286 is
selected rather than enabled directly Kconfig will just ignore any
dependencies it has.  I've applied anyway.

Patch
diff mbox

diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig
index 351bf48..a68d173 100644
--- a/sound/soc/codecs/Kconfig
+++ b/sound/soc/codecs/Kconfig
@@ -484,6 +484,7 @@  config SND_SOC_RL6231
 
 config SND_SOC_RT286
 	tristate
+	depends on I2C
 
 config SND_SOC_RT5631
 	tristate