From: Mark Brown Date: Thu, 18 Dec 2008 09:54:12 +0000 (+0100) Subject: mfd: Pass driver_data onto child devices X-Git-Tag: v2.6.29-rc1~493^2~13 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=44faac3155247d9cb9aec5a53832014e1f807c78;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Samuel Ortiz --- diff --git a/drivers/mfd/mfd-core.c b/drivers/mfd/mfd-core.c index 6c0d1bec4b7..54ddf3772e0 100644 --- a/drivers/mfd/mfd-core.c +++ b/drivers/mfd/mfd-core.c @@ -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);