summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra
diff options
context:
space:
mode:
authorTobias Klauser <tobias.klauser@zhinst.com>2015-07-29 16:40:38 +0200
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2015-10-23 10:06:58 +0200
commit0b206b99b8b7c27e70fb91bc13e2255cb0cfeb28 (patch)
tree68ae59e42a427bcc2f969d57e3cbb52eec16f793 /arch/arm/mach-tegra
parentfec5a5f526e15dbdea4cfb32ecc855506665c7b5 (diff)
apalis_t30: Make audio and leds-pwm platform devices dependent on kconfig symbols
Signed-off-by: Tobias Klauser <tobias.klauser@zhinst.com>
Diffstat (limited to 'arch/arm/mach-tegra')
-rw-r--r--arch/arm/mach-tegra/board-apalis_t30.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-apalis_t30.c b/arch/arm/mach-tegra/board-apalis_t30.c
index 08c0dd28bc61..2ea3b0f9795a 100644
--- a/arch/arm/mach-tegra/board-apalis_t30.c
+++ b/arch/arm/mach-tegra/board-apalis_t30.c
@@ -56,6 +56,7 @@
/* I2S */
+#ifdef CONFIG_AUDIO_SGTL5000_TEGRA
static struct tegra_asoc_platform_data apalis_t30_audio_sgtl5000_pdata = {
.gpio_ext_mic_en = -1,
.gpio_hp_det = -1,
@@ -85,6 +86,7 @@ static struct platform_device apalis_t30_audio_sgtl5000_device = {
.id = 0,
.name = "tegra-snd-apalis_t30-sgtl5000",
};
+#endif /* CONFIG_AUDIO_SGTL5000_TEGRA */
/* Camera */
@@ -803,6 +805,8 @@ static void apalis_t30_pci_init(void)
}
/* PWM LEDs */
+
+#ifdef CONFIG_LEDS_PWM
static struct led_pwm tegra_leds_pwm[] = {
{
.max_brightness = 255,
@@ -836,6 +840,7 @@ static struct platform_device tegra_led_pwm_device = {
.id = -1,
.name = "leds_pwm",
};
+#endif /* CONFIG_LEDS_PWM */
/* RTC */
@@ -1571,10 +1576,14 @@ static struct platform_device *apalis_t30_devices[] __initdata = {
&tegra_spdif_device,
&spdif_dit_device,
&tegra_pcm_device,
+#ifdef CONFIG_AUDIO_SGTL5000_TEGRA
&apalis_t30_audio_sgtl5000_device,
+#endif
&tegra_hda_device,
&tegra_cec_device,
+#ifdef CONFIG_LEDS_PWM
&tegra_led_pwm_device,
+#endif
&tegra_pwfm1_device,
&tegra_pwfm2_device,
&tegra_pwfm3_device,