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 <spyro@f2s.com> Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Cc: Philipp Zabel <philipp.zabel@gmail.com> Acked-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user