summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Neri <ricardo.neri@ti.com>2011-04-07 08:44:23 +0100
committerAndy Green <andy.green@linaro.org>2011-04-07 08:44:23 +0100
commit9858d8c3faa34a8d8ca482bc12d0a9d933fa6be9 (patch)
tree312b966d4f41573a0a7ef58c62fab636bd992004
parentf6f9b2f090766b3a4da8568d692ae2819b470d6a (diff)
ASoC: OMAP: Add platform_device ID to SDP4430 machine driver
Utilize a platform_device ID when creating the device. This is to allow to other SDP and Panda machine drivers to connect to soc-audio. New machine drivers must use different platform_device IDs if they need to coexist with existing ASoC machine drivers. Signed-off-by: Ricardo Neri <ricardo.neri@ti.com>
-rw-r--r--sound/soc/omap/sdp4430.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/soc/omap/sdp4430.c b/sound/soc/omap/sdp4430.c
index 471953ebf83..06583b534ab 100644
--- a/sound/soc/omap/sdp4430.c
+++ b/sound/soc/omap/sdp4430.c
@@ -39,6 +39,8 @@
#include "omap-dmic.h"
#include "../codecs/twl6040.h"
+#define SDP4430_SND_DEV_ID 0
+
static int twl6040_power_mode;
static int mcbsp_cfg;
@@ -897,7 +899,8 @@ static int __init sdp4430_soc_init(void)
}
printk(KERN_INFO "SDP4430 SoC init\n");
- sdp4430_snd_device = platform_device_alloc("soc-audio", -1);
+ sdp4430_snd_device = platform_device_alloc("soc-audio",
+ SDP4430_SND_DEV_ID);
if (!sdp4430_snd_device) {
printk(KERN_ERR "Platform device allocation failed\n");
return -ENOMEM;