diff options
-rw-r--r-- | cpukit/sapi/ChangeLog | 6 | ||||
-rw-r--r-- | cpukit/sapi/include/rtems/io.h | 2 | ||||
-rw-r--r-- | cpukit/sapi/src/io.c | 40 |
3 files changed, 7 insertions, 41 deletions
diff --git a/cpukit/sapi/ChangeLog b/cpukit/sapi/ChangeLog index 4e9cad650e..24d943f454 100644 --- a/cpukit/sapi/ChangeLog +++ b/cpukit/sapi/ChangeLog @@ -1,3 +1,9 @@ +2003-02-03 Joel Sherrill <joel@OARcorp.com> + + PR 338/filesystem + * include/rtems/io.h, src/io.c: Side-effect of fixing reentrancy + problem with rtems_io_lookup_name() (API change). + 2002-12-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de> * Makefile.am: Don't create $ARCH as side-effect of compilation. diff --git a/cpukit/sapi/include/rtems/io.h b/cpukit/sapi/include/rtems/io.h index 60d7ea2d53..3514bb339e 100644 --- a/cpukit/sapi/include/rtems/io.h +++ b/cpukit/sapi/include/rtems/io.h @@ -159,7 +159,7 @@ rtems_status_code rtems_io_register_name( rtems_status_code rtems_io_lookup_name( const char *name, - rtems_driver_name_t **device_info + rtems_driver_name_t *device_info ); diff --git a/cpukit/sapi/src/io.c b/cpukit/sapi/src/io.c index 54052b56c1..1d8f220fb6 100644 --- a/cpukit/sapi/src/io.c +++ b/cpukit/sapi/src/io.c @@ -240,46 +240,6 @@ rtems_status_code rtems_io_register_name( /*PAGE * - * rtems_io_lookup_name - * - * Find what driver "owns" this name - * - * Input Paramters: - * name - name to lookup the associated device - * - * Output Parameters: - * device_info - device associate with name - * RTEMS_SUCCESSFUL - if successful - * error code - if unsuccessful - */ - -#if 0 -rtems_status_code rtems_io_lookup_name( - const char *name, - rtems_driver_name_t **device_info -) -{ - rtems_driver_name_t *np; - unsigned32 index; - - for( index=0, np = _IO_Driver_name_table ; - index < _IO_Number_of_devices ; - index++, np++ ) - if (np->device_name) - if (strncmp(np->device_name, name, np->device_name_length) == 0) - { - *device_info = np; - return RTEMS_SUCCESSFUL; - } - - *device_info = 0; - return RTEMS_UNSATISFIED; -} -#endif - - -/*PAGE - * * rtems_io_initialize * * This routine is the initialization directive of the IO manager. |