projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6354ab5
)
mfd: Pass driver_data onto child devices
author
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Thu, 18 Dec 2008 09:54:12 +0000
(10:54 +0100)
committer
Samuel Ortiz
<samuel@sortiz.org>
Sun, 4 Jan 2009 11:17:41 +0000
(12:17 +0100)
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>
drivers/mfd/mfd-core.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/mfd-core.c
b/drivers/mfd/mfd-core.c
index 6c0d1bec4b76c1ab58ae0cbe86cc2539cc3b6375..54ddf3772e0c104c29e9d98da29e22eb7c300220 100644
(file)
--- 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);