diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2009-01-05 02:08:30 -0800 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-01-05 13:09:31 +0000 |
commit | 5cf1c00b0ef3ba964b2ad268a55c278cf43f798f (patch) | |
tree | 438757a395cb40717b9d92801a8f907b0191d1d7 /sound | |
parent | 6a94cb73064c952255336cc57731904174b2c58f (diff) | |
download | linux-5cf1c00b0ef3ba964b2ad268a55c278cf43f798f.tar.gz linux-5cf1c00b0ef3ba964b2ad268a55c278cf43f798f.tar.bz2 linux-5cf1c00b0ef3ba964b2ad268a55c278cf43f798f.zip |
ASoC: fix davinci-sffsdr buglet
Minor bugfix: now that DaVinci kernels can support multiple
boards, board-specific ASoC components need to verify they're
running on the right board before initializing.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/davinci/davinci-sffsdr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/davinci/davinci-sffsdr.c b/sound/soc/davinci/davinci-sffsdr.c index f67579d52765..4935d1bcbd8d 100644 --- a/sound/soc/davinci/davinci-sffsdr.c +++ b/sound/soc/davinci/davinci-sffsdr.c @@ -24,6 +24,7 @@ #include <sound/soc-dapm.h> #include <asm/dma.h> +#include <asm/mach-types.h> #include <asm/plat-sffsdr/sffsdr-fpga.h> #include <mach/mcbsp.h> @@ -115,6 +116,9 @@ static int __init sffsdr_init(void) { int ret; + if (!machine_is_sffsdr()) + return -EINVAL; + sffsdr_snd_device = platform_device_alloc("soc-audio", 0); if (!sffsdr_snd_device) { printk(KERN_ERR "platform device allocation failed\n"); |