Commit 73790646 authored by Russell King's avatar Russell King Committed by Linus Torvalds

[PATCH] Move MODULE_ALIAS_LDISC to tty_ldisc.h

MODULE_ALIAS_LDISC() is not in any way architecture-specific, so don't
put it in architecture header files.

Here's a patch which moves it to a more sensible location.
parent cadf0417
......@@ -102,8 +102,6 @@ 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 */
......@@ -169,9 +169,6 @@ struct winsize {
0; \
})
#define MODULE_ALIAS_LDISC(ldisc) \
MODULE_ALIAS("tty-ldisc-" __stringify(ldisc))
#endif /* __KERNEL__ */
#endif /* _SPARC_TERMIOS_H */
......@@ -168,9 +168,6 @@ struct winsize {
0; \
})
#define MODULE_ALIAS_LDISC(ldisc) \
MODULE_ALIAS("tty-ldisc-" __stringify(ldisc))
#endif /* __KERNEL__ */
#endif /* _SPARC64_TERMIOS_H */
......@@ -138,4 +138,7 @@ struct tty_ldisc {
#define LDISC_FLAG_DEFINED 0x00000001
#define MODULE_ALIAS_LDISC(ldisc) \
MODULE_ALIAS("tty-ldisc-" __stringify(ldisc))
#endif /* _LINUX_TTY_LDISC_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment