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

mfd: intel_msic: Make it explicitly non-modular

The Kconfig currently controlling compilation of this code is:

drivers/mfd/Kconfig:config MFD_INTEL_MSIC
drivers/mfd/Kconfig: bool "Intel MSIC

...meaning that it currently is not being built as a module by anyone.

Lets remove the couple instances of module references, so that
when reading the driver there is no doubt it is builtin-only.

Since module_platform_driver() uses the same init level priority as
builtin_platform_driver() the init ordering remains unchanged with
this commit.

We also delete the MODULE_LICENSE tag etc. since all that information
is already contained at the top of the file in the comments.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Paul Gortmaker and committed by
Lee Jones
b3fe9c5c ed401e8f

+2 -7
+2 -7
drivers/mfd/intel_msic.c
··· 12 12 #include <linux/err.h> 13 13 #include <linux/gpio.h> 14 14 #include <linux/io.h> 15 - #include <linux/module.h> 15 + #include <linux/init.h> 16 16 #include <linux/mfd/core.h> 17 17 #include <linux/mfd/intel_msic.h> 18 18 #include <linux/platform_device.h> ··· 449 449 .name = "intel_msic", 450 450 }, 451 451 }; 452 - 453 - module_platform_driver(intel_msic_driver); 454 - 455 - MODULE_DESCRIPTION("Driver for Intel MSIC"); 456 - MODULE_AUTHOR("Mika Westerberg <mika.westerberg@linux.intel.com>"); 457 - MODULE_LICENSE("GPL"); 452 + builtin_platform_driver(intel_msic_driver);