Commit 44faac3155247d9cb9aec5a53832014e1f807c78

Authored by Mark Brown
Committed by Samuel Ortiz
1 parent 6354ab5c63

mfd: Pass driver_data onto child devices

The MFD cell structure provides a driver_data field but doesn't pass it
on to the child devices when instantiating them - do that.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@openedhand.com>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/mfd/mfd-core.c
... ... @@ -34,6 +34,7 @@
34 34 goto fail_device;
35 35  
36 36 pdev->dev.parent = parent;
  37 + platform_set_drvdata(pdev, cell->driver_data);
37 38  
38 39 ret = platform_device_add_data(pdev,
39 40 cell->platform_data, cell->data_size);