Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c448637 authored by Peter Ujfalusi's avatar Peter Ujfalusi
Browse files

MFD: twl6040: Change platform data for soc codec driver



Pass twl4030_codec_data instead of the twl4030_audio_data
for the ASoC codec driver.

Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent fb34d3d5
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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++;
	}