Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers/acpi: make bgrt driver explicitly non-modular

The Kconfig for this driver is currently:

config ACPI_BGRT
bool "Boottime Graphics Resource Table support"

...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 also delete the MODULE_LICENSE tag etc. since all that information
was (or is now) contained at the top of the file in the comments.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Paul Gortmaker and committed by
Rafael J. Wysocki
cc079f8c f6cede5b

+3 -7
+3 -7
drivers/acpi/bgrt.c
··· 1 1 /* 2 + * BGRT boot graphic support 3 + * Authors: Matthew Garrett, Josh Triplett <josh@joshtriplett.org> 2 4 * Copyright 2012 Red Hat, Inc <mjg@redhat.com> 3 5 * Copyright 2012 Intel Corporation 4 6 * ··· 10 8 */ 11 9 12 10 #include <linux/kernel.h> 13 - #include <linux/module.h> 14 11 #include <linux/init.h> 15 12 #include <linux/device.h> 16 13 #include <linux/sysfs.h> ··· 104 103 kobject_put(bgrt_kobj); 105 104 return ret; 106 105 } 107 - 108 - module_init(bgrt_init); 109 - 110 - MODULE_AUTHOR("Matthew Garrett, Josh Triplett <josh@joshtriplett.org>"); 111 - MODULE_DESCRIPTION("BGRT boot graphic support"); 112 - MODULE_LICENSE("GPL"); 106 + device_initcall(bgrt_init);