]> git.hungrycats.org Git - linux/commitdiff
[PATCH] dev_t handling cleanups (1/12)
authorAlexander Viro <viro@www.linux.org.uk>
Sun, 31 Aug 2003 05:50:17 +0000 (22:50 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Sun, 31 Aug 2003 05:50:17 +0000 (22:50 -0700)
removed unused kdev_t stuff, fixed a typo left from the
console->device() conversion.

arch/mips/sibyte/cfe/console.c
arch/ppc/8260_io/uart.c
include/linux/kdev_t.h

index 4ecbf1d0061a2600e1ab8267ee75caad9e59d970..52b562eb2a09f9fef09bb5919d6c9a8c1714539c 100644 (file)
@@ -9,7 +9,6 @@
 #include "cfe_error.h"
 
 extern int cfe_cons_handle;
-static kdev_t cfe_consdev;
 
 static void cfe_console_write(struct console *cons, const char *str,
                       unsigned int count)
@@ -57,15 +56,12 @@ static int cfe_console_setup(struct console *cons, char *str)
 #ifdef CONFIG_SIBYTE_SB1250_DUART
                if (!strcmp(consdev, "uart0")) {
                        setleds("u0cn");
-//                     cfe_consdev = MKDEV(TTY_MAJOR, SB1250_DUART_MINOR_BASE + 0);
                } else if (!strcmp(consdev, "uart1")) {
                        setleds("u1cn");
-//                     cfe_consdev = MKDEV(TTY_MAJOR, SB1250_DUART_MINOR_BASE + 1);
 #endif
 #ifdef CONFIG_VGA_CONSOLE
                } else if (!strcmp(consdev, "pcconsole0")) {
                        setleds("pccn");
-//                     cfe_consdev = MKDEV(TTY_MAJOR, 0);
 #endif
                } else
                        return -ENODEV;
index c30a7e88ac51c679981e2570bc941b41b3391ebe..6b6442cce77cca5daa989104b5d411fdc7eceaaf 100644 (file)
@@ -2462,7 +2462,7 @@ void kgdb_map_scc(void)
 }
 #endif
 
-static kdev_t serial_console_device(struct console *c)
+static struct tty_driver *serial_console_device(struct console *c, int *index)
 {
        *index = c->index;
        return serial_driver;
index 337b7261247bc243453447341fb6ca1c3cf234ac..900a4a1e1282aa52287c80ff8354eec5f82e1ba5 100644 (file)
@@ -90,23 +90,8 @@ static inline unsigned int kdev_val(kdev_t dev)
        return dev.value;
 }
 
-static inline kdev_t val_to_kdev(unsigned int val)
-{
-       kdev_t dev;
-       dev.value = val;
-       return dev;
-}
-
-#define HASHDEV(dev)   (kdev_val(dev))
 #define NODEV          (mk_kdev(0,0))
 
-static inline int kdev_same(kdev_t dev1, kdev_t dev2)
-{
-       return dev1.value == dev2.value;
-}
-
-#define kdev_none(d1)  (!kdev_val(d1))
-
 /* Mask off the high bits for now.. */
 #define minor(dev)     ((dev).value & 0xff)
 #define major(dev)     (((dev).value >> KDEV_MINOR_BITS) & 0xff)