diff options
| author | Andrew Morton <akpm@osdl.org> | 2003-09-03 11:25:06 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-09-03 11:25:06 -0700 |
| commit | 6cea4e9ecabb8f3f07cdb60b17054549e591bc30 (patch) | |
| tree | 20ee07b07aabd95056b4909aa00dafa2b3388c79 /include | |
| parent | 80e010299e3a82811390aa040d5e04e34125c239 (diff) | |
[PATCH] MODULE_ALIAS for tty ldisc
From: Rusty Russell <rusty@rustcorp.com.au>
Rather than hardcoded names in modprobe, modules can offer their own
aliases (which can be overridden by the config file).
Here are the tty-ldisc ones.
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-i386/termios.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-i386/termios.h b/include/asm-i386/termios.h index c4cc5c8168aa..c0fded995489 100644 --- a/include/asm-i386/termios.h +++ b/include/asm-i386/termios.h @@ -58,6 +58,7 @@ struct termio { #define N_HCI 15 /* Bluetooth HCI UART */ #ifdef __KERNEL__ +#include <linux/module.h> /* intr=^C quit=^\ erase=del kill=^U eof=^D vtime=\0 vmin=\1 sxtc=\0 @@ -101,6 +102,8 @@ struct termio { #define user_termios_to_kernel_termios(k, u) copy_from_user(k, u, sizeof(struct termios)) #define kernel_termios_to_user_termios(u, k) copy_to_user(u, k, sizeof(struct termios)) +#define MODULE_ALIAS_LDISC(ldisc) \ + MODULE_ALIAS("tty-ldisc-" __stringify(ldisc)) #endif /* __KERNEL__ */ #endif /* _I386_TERMIOS_H */ |
