diff options
author | Pantelis Antoniou <pantelis.antoniou@konsulko.com> | 2014-10-28 22:36:01 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-02-20 23:41:27 +0900 |
commit | 94b62a841aac10919826afaf3cdee118dbdabef2 (patch) | |
tree | 4634ee475570e0c82dd574390874b991abf46f32 /drivers/base/platform.c | |
parent | 8a575393a241e60bdc35f21ebe6f112b8e087227 (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>
(cherry picked from commit 801d728c10db4b28e01590b46bf1f0df930760cc)
Signed-off-by: Mark Brown <broonie@kernel.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 bc78848dd59a..3b977de18bab 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c @@ -937,6 +937,7 @@ int __init platform_bus_init(void) error = bus_register(&platform_bus_type); if (error) device_unregister(&platform_bus); + of_platform_register_reconfig_notifier(); return error; } |