From 95308caf587391f267de052260991e687db68a36 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Sat, 31 Jan 2015 21:25:57 +0100 Subject: IMFS: Use rtems_filesystem_make_dev_t_from_pointer --- cpukit/libfs/src/imfs/imfs.h | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'cpukit/libfs/src/imfs/imfs.h') diff --git a/cpukit/libfs/src/imfs/imfs.h b/cpukit/libfs/src/imfs/imfs.h index b8ff29dc70..c296bffc06 100644 --- a/cpukit/libfs/src/imfs/imfs.h +++ b/cpukit/libfs/src/imfs/imfs.h @@ -227,19 +227,6 @@ typedef struct { */ /**@{*/ -/* - * Major device number for the IMFS. This is not a real device number because - * the IMFS is just a file system and does not have a driver. - */ -#define IMFS_DEVICE_MAJOR_NUMBER (0xfffe) - -/** - * @ingroup IMFSGenericNodes - * - * @brief Generic IMFS device major number. - */ -#define IMFS_GENERIC_DEVICE_MAJOR_NUMBER (0xfffd) - /* * Maximum length of a "basename" of an IMFS file/node. */ @@ -385,7 +372,6 @@ static inline void IMFS_mtime_ctime_update( IMFS_jnode_t *jnode ) } typedef struct { - int instance; ino_t ino_count; const IMFS_node_control *node_controls [IMFS_TYPE_COUNT]; } IMFS_fs_info_t; @@ -1008,10 +994,7 @@ static inline dev_t IMFS_generic_get_device_identifier_by_node( const IMFS_jnode_t *node ) { - return rtems_filesystem_make_dev_t( - IMFS_GENERIC_DEVICE_MAJOR_NUMBER, - node->st_ino - ); + return rtems_filesystem_make_dev_t_from_pointer( node ); } #ifdef __cplusplus -- cgit v1.2.3