diff options
author | Grant Likely <[email protected]> | 2014-11-19 22:35:39 +0000 |
---|---|---|
committer | Grant Likely <[email protected]> | 2014-11-20 10:51:18 +0000 |
commit | 2d0747c4b68be8eb8ccfa2c538f2f5dd2ea89094 (patch) | |
tree | a52d97a377369b58a018488a15d700652bec6e74 /include/linux/fpga/fpga-mgr.h | |
parent | 08d53aa58cb162e65e25dbe31d28438657cb8e33 (diff) |
of: Properly set the OF_POPULATED_BUS flag on root node
of_platform_populate() takes a subset of the device tree and turns it
into a set of platform_devices. At the same time it sets the
OF_POPULATED_BUS flag in each bus nodes so that of_platform_depopulate()
can undo the operation at a later time. However, it doesn't set the flag
on the root of the population tree which means that dynamic modifications
of the device tree at runtime will not create/destroy devices correctly.
Fix of_platform_populate() to set the OF_POPULATED_BUS flag on the node
it is called with.
Signed-off-by: Grant Likely <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Pantelis Antoniou <[email protected]>
Cc: Pawel Moll <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions