[rtems commit] Remove obsolete rtems_clock_major/minor

Sebastian Huber sebh at rtems.org
Thu May 14 09:18:24 UTC 2015


Module:    rtems
Branch:    master
Commit:    a0001d64fea2619a76fd117967756089e5305f09
Changeset: http://git.rtems.org/rtems/commit/?id=a0001d64fea2619a76fd117967756089e5305f09

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu May 14 11:17:00 2015 +0200

Remove obsolete rtems_clock_major/minor

These global variables are obsolete since
65f71f8472fa904ca48b816301ed0810def47001.

---

 c/src/lib/libbsp/sparc/shared/timer/tlib_ckinit.c | 14 --------------
 doc/bsp_howto/clock.t                             | 17 -----------------
 2 files changed, 31 deletions(-)

diff --git a/c/src/lib/libbsp/sparc/shared/timer/tlib_ckinit.c b/c/src/lib/libbsp/sparc/shared/timer/tlib_ckinit.c
index 9b6c2d1..50b858f 100644
--- a/c/src/lib/libbsp/sparc/shared/timer/tlib_ckinit.c
+++ b/c/src/lib/libbsp/sparc/shared/timer/tlib_ckinit.c
@@ -53,13 +53,6 @@ void Clock_exit(void);
 void Clock_isr(void *arg_unused);
 
 /*
- *  Major and minor number.
- */
-
-rtems_device_major_number rtems_clock_major = UINT32_MAX;
-rtems_device_minor_number rtems_clock_minor;
-
-/*
  *  Clock_isr
  *
  *  This is the clock tick interrupt handler.
@@ -259,13 +252,6 @@ rtems_device_driver Clock_initialize(
   atexit( Clock_exit );
 
   /*
-   * make major/minor avail to others such as shared memory driver
-   */
-
-  rtems_clock_major = major;
-  rtems_clock_minor = minor;
-
-  /*
    *  If we are counting ISRs per tick, then initialize the counter.
    */
 
diff --git a/doc/bsp_howto/clock.t b/doc/bsp_howto/clock.t
index 6c00c5d..396634b 100644
--- a/doc/bsp_howto/clock.t
+++ b/doc/bsp_howto/clock.t
@@ -19,23 +19,6 @@ The clock driver is located in the @code{clock} directory of the BSP.
 This section describes the global variables expected to be provided by
 this driver.
 
- at subsection Major and Minor Number
-
-The major and minor numbers of the clock driver are made available via 
-the following variables.  
-
- at itemize @bullet
- at item rtems_device_major_number rtems_clock_major;
- at item rtems_device_minor_number rtems_clock_minor;
- at end itemize
-
-The clock device driver is responsible for declaring and
-initializing these variables.  These variables are used
-by other RTEMS components -- notably the Shared Memory Driver. 
-
- at b{NOTE:} In a future RTEMS version, these variables may be replaced
-with the clock device driver registering @b{/dev/clock}.
-
 @subsection Ticks Counter
 
 Most of the clock device drivers provide a global variable



More information about the vc mailing list