From 0b206b99b8b7c27e70fb91bc13e2255cb0cfeb28 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 29 Jul 2015 16:40:38 +0200 Subject: apalis_t30: Make audio and leds-pwm platform devices dependent on kconfig symbols Signed-off-by: Tobias Klauser --- arch/arm/mach-tegra/board-apalis_t30.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'arch/arm/mach-tegra') 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, -- cgit v1.2.3