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

Commit 44faac31 authored by Mark Brown's avatar Mark Brown Committed by Samuel Ortiz
Browse files

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: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@openedhand.com>
parent 6354ab5c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@ static int mfd_add_device(struct device *parent, int id,
		goto fail_device;

	pdev->dev.parent = parent;
	platform_set_drvdata(pdev, cell->driver_data);

	ret = platform_device_add_data(pdev,
			cell->platform_data, cell->data_size);