ACPI / lpat: make it explicitly non-modular
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 11 Jul 2016 21:22:41 +0000 (17:22 -0400)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 16 Jul 2016 01:08:10 +0000 (03:08 +0200)
The Makefile for building this is "acpi-y" and so it is not built
as a module.  Hence including module.h and everything that comes
with it just for the no-op MODULE_LICENSE is rather heavy handed.

The license info is found at the top of the file, so we just remove
the MODULE_LICENSE and the include of module.h

We add an include of export.h since the file exports some symbols.

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

index feb61c1630eb821b0603e3cb55285faeaba60a02..c1c4877ca96caa44094a0d270d91e5c1eb84279e 100644 (file)
@@ -13,7 +13,7 @@
  * GNU General Public License for more details.
  */
 
-#include <linux/module.h>
+#include <linux/export.h>
 #include <linux/acpi.h>
 #include <acpi/acpi_lpat.h>
 
@@ -157,5 +157,3 @@ void acpi_lpat_free_conversion_table(struct acpi_lpat_conversion_table
        }
 }
 EXPORT_SYMBOL_GPL(acpi_lpat_free_conversion_table);
-
-MODULE_LICENSE("GPL");
This page took 0.026524 seconds and 5 git commands to generate.