Skip to content

Commit

Permalink
drivers/char: make efirtc.c driver explicitly non-modular
Browse files Browse the repository at this point in the history
The Kconfig for this driver is currently:

config EFI_RTC
        bool "EFI Real Time Clock Services"

...meaning that it currently is not being built as a module by anyone.
Lets remove all modular references, 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 leave some tags like MODULE_LICENSE for documentation purposes.

Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Paul Gortmaker authored and Greg Kroah-Hartman committed Sep 21, 2015
1 parent 67dd339 commit 9b7ebe0
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions drivers/char/efirtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/miscdevice.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/rtc.h>
#include <linux/proc_fs.h>
Expand Down Expand Up @@ -395,14 +394,8 @@ efi_rtc_init(void)
}
return 0;
}
device_initcall(efi_rtc_init);

static void __exit
efi_rtc_exit(void)
{
/* not yet used */
}

module_init(efi_rtc_init);
module_exit(efi_rtc_exit);

/*
MODULE_LICENSE("GPL");
*/

0 comments on commit 9b7ebe0

Please sign in to comment.