Stephen Warren a7c42b2545 mfd: Always assign of_node in mfd_add_device()
mfd_add_device() assigns .of_node in the device objects it creates only
if the mfd_cell for the device has the .of_compatible field set and the
DT node for the top-level MFD device contains a child whose compatible
property matches the cell's .of_compatible field.

This leaves .of_node unset in many cases. When this happens, entries in
the DT /aliases property which refer to the top-level MFD DT node will
never match the MFD child devices, hence causing the requested alias not
to be honored.

Solve this by setting each MFD child device's .of_node equal to the top-
level MFD device's .of_node field in the cases where it would otherwise
remain unset.

The first use-case for this will be aliases for the TPS6586x's RTC
device.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
2014-01-21 08:28:06 +00:00
..
2013-10-23 16:20:44 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2014-01-06 09:13:30 +00:00
2013-07-31 13:01:29 +01:00
2013-08-20 03:16:00 +02:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2014-01-21 08:28:04 +00:00
2013-07-31 13:01:29 +01:00
2014-01-21 08:27:59 +00:00
2014-01-21 08:27:59 +00:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2012-11-28 12:22:27 -08:00
2013-08-20 10:22:01 +02:00
2013-07-31 13:01:29 +01:00
2013-06-18 09:41:15 +02:00
2013-04-09 12:18:16 +02:00
2013-10-23 16:21:12 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-11-27 09:35:11 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00