MFD: twl6040: Change platform data for soc codec driver
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 1 Jun 2011 10:05:10 +0000 (13:05 +0300)
committerPeter Ujfalusi <peter.ujfalusi@ti.com>
Mon, 4 Jul 2011 16:35:07 +0000 (19:35 +0300)
Pass twl4030_codec_data instead of the twl4030_audio_data
for the ASoC codec driver.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/twl6040-core.c

index 57ae36b..cfaedb5 100644 (file)
@@ -501,9 +501,8 @@ static int __devinit twl6040_probe(struct platform_device *pdev)
        if (pdata->codec) {
                cell = &twl6040->cells[children];
                cell->name = "twl6040-codec";
-               /* The codec expects the twl4030_audio_data as platform data */
-               cell->platform_data = pdata;
-               cell->pdata_size = sizeof(*pdata);
+               cell->platform_data = pdata->codec;
+               cell->pdata_size = sizeof(*pdata->codec);
                children++;
        }