diff options
author | Pantelis Antoniou <pantelis.antoniou@konsulko.com> | 2014-10-28 16:36:01 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@linaro.org> | 2014-11-24 17:25:06 -0500 |
commit | 801d728c10db4b28e01590b46bf1f0df930760cc (patch) | |
tree | 152e49c3417aa84cb204faefb50f0e0c23eb1867 /drivers/base/platform.c | |
parent | f5242e5a883bf1c1aba6bfd87b85e7dda0e62191 (diff) |
of/reconfig: Add OF_DYNAMIC notifier for platform_bus_type
Add OF notifier handler needed for creating/destroying platform devices
according to dynamic runtime changes in the DT live tree.
Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
Signed-off-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'drivers/base/platform.c')
-rw-r--r-- | drivers/base/platform.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/base/platform.c b/drivers/base/platform.c index b2afc29403f9..233ececd15a3 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c | |||
@@ -1006,6 +1006,7 @@ int __init platform_bus_init(void) | |||
1006 | error = bus_register(&platform_bus_type); | 1006 | error = bus_register(&platform_bus_type); |
1007 | if (error) | 1007 | if (error) |
1008 | device_unregister(&platform_bus); | 1008 | device_unregister(&platform_bus); |
1009 | of_platform_register_reconfig_notifier(); | ||
1009 | return error; | 1010 | return error; |
1010 | } | 1011 | } |
1011 | 1012 | ||