summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAndy Green <andy.green@linaro.org>2011-12-20 16:53:52 +0800
committerSebastien Jan <s-jan@ti.com>2012-01-06 16:40:02 +0100
commitc2ca687a300af8f734d02b3e00d47c6ab58c95cd (patch)
treed67314efe1fdcece6efe113b566b5188489c70ec /drivers
parent7a58d8720c586d5a41364244bfa59f3ff88d5057 (diff)
asoc sdp4430 introduce twl6040 platform card name
Signed-off-by: Andy Green <andy.green@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mfd/twl6040-core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mfd/twl6040-core.c b/drivers/mfd/twl6040-core.c
index 268f80fd0439..d9149d016435 100644
--- a/drivers/mfd/twl6040-core.c
+++ b/drivers/mfd/twl6040-core.c
@@ -495,6 +495,10 @@ static int __devinit twl6040_probe(struct platform_device *pdev)
twl6040->dev = &pdev->dev;
twl6040->irq = pdata->naudint_irq;
twl6040->irq_base = pdata->irq_base;
+ strncpy(twl6040->platform_card_name, pdata->audio_card_name,
+ sizeof twl6040->platform_card_name - 1);
+ twl6040->platform_card_name[sizeof twl6040->platform_card_name - 1] =
+ '\0';
mutex_init(&twl6040->mutex);
mutex_init(&twl6040->io_mutex);