summaryrefslogtreecommitdiffstats
path: root/cpukit/libdrvmgr
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-01-26 07:17:27 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-01-26 11:42:04 +0100
commit61bbf9194ff4bdbc1b48e6ac9919c02b358e5701 (patch)
tree60a695a0b95056e348e35dd979152277d1de705f /cpukit/libdrvmgr
parentdrvmgr: Remove dupl bsp_driver_level_hook() decl (diff)
downloadrtems-61bbf9194ff4bdbc1b48e6ac9919c02b358e5701.tar.bz2
drvmgr: Move bsp_driver_level_hook() calls
Diffstat (limited to 'cpukit/libdrvmgr')
-rw-r--r--cpukit/libdrvmgr/drvmgr.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/cpukit/libdrvmgr/drvmgr.c b/cpukit/libdrvmgr/drvmgr.c
index 7c37afd808..66d6cfa0e7 100644
--- a/cpukit/libdrvmgr/drvmgr.c
+++ b/cpukit/libdrvmgr/drvmgr.c
@@ -68,14 +68,15 @@ void _DRV_Manager_init_level(int level)
{
struct drvmgr *mgr = &drvmgr;
- if (mgr->level >= level)
- return;
+ if (mgr->level < level) {
+ /* Set new Level */
+ mgr->level = level;
- /* Set new Level */
- mgr->level = level;
+ /* Initialize buses and devices into this new level */
+ drvmgr_init_update();
+ }
- /* Initialize buses and devices into this new level */
- drvmgr_init_update();
+ bsp_driver_level_hook(level);
}
/* Initialize Data structures of the driver manager and call driver