mmc: Use device platform_data to retrieve tmio_mmc platform bits

With the addition of the platform device mfd_cell pointer, we can now
cleanly pass the sub device drivers platform data pointers through the
regular device platform_data one, and get rid of mfd_get_data()

Cc: Ian Molton <[email protected]>
Cc: Guennadi Liakhovetski <[email protected]>
Cc: Philipp Zabel <[email protected]>
Acked-by: Dmitry Eremin-Solenikov <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
Samuel Ortiz 2011-04-06 11:38:14 +02:00
commit ec71974f2a
5 changed files with 9 additions and 5 deletions

View file

@ -69,7 +69,7 @@ static int __devinit tmio_mmc_probe(struct platform_device *pdev)
if (pdev->num_resources != 2)
goto out;
pdata = mfd_get_data(pdev);
pdata = pdev->dev.platform_data;
if (!pdata || !pdata->hclk)
goto out;