Repository navigation
Commit a8cedfe
drivers/char: make hpet.c explicitly non-modular
The Kconfig currently controlling compilation of this code is:
char/Kconfig:config HPET
char/Kconfig: bool "HPET - High Precision Event Timer" if (X86 || IA64)
...meaning that it currently is not being built as a module by anyone.
Lets remove the modular code that is essentially orphaned, so that
when reading the driver there is no doubt it is builtin-only.
Since module_init translates to device_initcall in the non-modular
case, the init ordering remains unchanged with this commit.
We don't replace module.h with init.h since the file already has that.
Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
We leave some tags like MODULE_AUTHOR for documentation purposes.
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent ff6f464 commit a8cedfe
1 file changed
Lines changed: 3 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
1043 | 1042 | | |
1044 | 1043 | | |
1045 | 1044 | | |
1046 | | - | |
1047 | | - | |
1048 | | - | |
1049 | | - | |
1050 | | - | |
1051 | | - | |
1052 | 1045 | | |
1053 | 1046 | | |
1054 | 1047 | | |
1055 | 1048 | | |
1056 | | - | |
1057 | 1049 | | |
1058 | 1050 | | |
1059 | 1051 | | |
1060 | 1052 | | |
1061 | 1053 | | |
1062 | 1054 | | |
1063 | | - | |
1064 | 1055 | | |
1065 | 1056 | | |
1066 | 1057 | | |
| |||
1086 | 1077 | | |
1087 | 1078 | | |
1088 | 1079 | | |
| 1080 | + | |
1089 | 1081 | | |
1090 | | - | |
1091 | | - | |
1092 | | - | |
1093 | | - | |
1094 | | - | |
1095 | | - | |
1096 | | - | |
1097 | | - | |
1098 | | - | |
1099 | | - | |
1100 | | - | |
1101 | | - | |
1102 | | - | |
| 1082 | + | |
1103 | 1083 | | |
1104 | 1084 | | |
| 1085 | + | |
0 commit comments