]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
am33xx: devices: register mcasp depending on CONFIG_SND_DAVINCI_SOC_MCASP not CONFIG_...
authorLothar Waßmann <LW@KARO-electronics.de>
Wed, 26 Jun 2013 13:05:08 +0000 (15:05 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 26 Jun 2013 13:05:08 +0000 (15:05 +0200)
arch/arm/mach-omap2/devices.c

index b524b47b22565e6c234140f121a22a7ccf931ee1..edefc7cc82290b6e6e46bfb66b1f8212095c2edf 100644 (file)
@@ -217,8 +217,7 @@ int __init am33xx_register_mfd_tscadc(struct mfd_tscadc_board *pdata)
        return 0;
 }
 
-#if defined(CONFIG_SND_AM335X_SOC_EVM) || \
-                               defined(CONFIG_SND_AM335X_SOC_EVM_MODULE)
+#if IS_ENABLED(CONFIG_SND_DAVINCI_SOC_MCASP)
 int __init am335x_register_mcasp(struct snd_platform_data *pdata, int ctrl_nr)
 {
        int l;
@@ -249,7 +248,7 @@ int __init am335x_register_mcasp(struct snd_platform_data *pdata, int ctrl_nr)
 }
 #endif
 
-#if (defined(CONFIG_SND_AM33XX_SOC) || (defined(CONFIG_SND_AM33XX_SOC_MODULE)))
+#if IS_ENABLED(CONFIG_SND_AM33XX_SOC)
 struct platform_device am33xx_pcm_device = {
        .name           = "davinci-pcm-audio",
        .id             = -1,