mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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:
parent
a771e36e16
commit
ec71974f2a
5 changed files with 9 additions and 5 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue