drivers/char: make hpet.c explicitly non-modular
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Sat, 8 Aug 2015 20:35:04 +0000 (16:35 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Sep 2015 02:32:35 +0000 (19:32 -0700)
commita8cedfec8f68e199ce9d00cee7868a5c65640bbc
treedfaa411b09d2345094941265d41fa2cce2d3f283
parentff6f46483f0e14b829cd5a71bafcbb1c136a84b6
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>
drivers/char/hpet.c