[PATCH 05/23] sapi: Use rtems_conf*_get_number_of_device_drivers
Joel Sherrill
Joel.Sherrill at OARcorp.com
Tue Nov 6 14:00:18 UTC 2012
Well maybe that check should be general so it would catch usage in cpukit and tests as well.:-)
Sebastian Huber <sebastian.huber at embedded-brains.de> wrote:
---
cpukit/sapi/src/io.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cpukit/sapi/src/io.c b/cpukit/sapi/src/io.c
index 679bae5..82448b8 100644
--- a/cpukit/sapi/src/io.c
+++ b/cpukit/sapi/src/io.c
@@ -39,7 +39,7 @@ void _IO_Manager_initialization(void)
uint32_t number_of_drivers;
driver_table = Configuration.Device_driver_table;
- drivers_in_table = Configuration.number_of_device_drivers;
+ drivers_in_table = rtems_configuration_get_number_of_device_drivers();
number_of_drivers = rtems_configuration_get_maximum_drivers();
/*
--
1.7.7
_______________________________________________
rtems-devel mailing list
rtems-devel at rtems.org
http://www.rtems.org/mailman/listinfo/rtems-devel
More information about the devel
mailing list