Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1436717

[PATCH 3/6] mfd: intel_msic: Make it explicitly non-modular

From Paul Gortmaker <paul.gortmaker@windriver.com>
Newsgroups linux.kernel
Subject [PATCH 3/6] mfd: intel_msic: Make it explicitly non-modular
Date 2016-07-05 03:30 +0200
Message-ID <rRnlw-4AT-19@gated-at.bofh.it> (permalink)
References <rRnlw-4AT-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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.

Cc: Lee Jones <lee.jones@linaro.org>
Cc: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---
 drivers/mfd/intel_msic.c | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/drivers/mfd/intel_msic.c b/drivers/mfd/intel_msic.c
index 25d486c543cb..2017446c5b4b 100644
--- a/drivers/mfd/intel_msic.c
+++ b/drivers/mfd/intel_msic.c
@@ -12,7 +12,7 @@
 #include <linux/err.h>
 #include <linux/gpio.h>
 #include <linux/io.h>
-#include <linux/module.h>
+#include <linux/init.h>
 #include <linux/mfd/core.h>
 #include <linux/mfd/intel_msic.h>
 #include <linux/platform_device.h>
@@ -449,9 +449,4 @@ static struct platform_driver intel_msic_driver = {
 		.name	= "intel_msic",
 	},
 };
-
-module_platform_driver(intel_msic_driver);
-
-MODULE_DESCRIPTION("Driver for Intel MSIC");
-MODULE_AUTHOR("Mika Westerberg <mika.westerberg@linux.intel.com>");
-MODULE_LICENSE("GPL");
+builtin_platform_driver(intel_msic_driver);
-- 
2.8.4

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 3/6] mfd: intel_msic: Make it explicitly non-modular Paul Gortmaker <paul.gortmaker@windriver.com> - 2016-07-05 03:30 +0200
  Re: [PATCH 3/6] mfd: intel_msic: Make it explicitly non-modular Mika Westerberg <mika.westerberg@linux.intel.com> - 2016-07-05 12:10 +0200
    Re: [PATCH 3/6] mfd: intel_msic: Make it explicitly non-modular Paul Gortmaker <paul.gortmaker@windriver.com> - 2016-07-06 18:40 +0200
      Re: [PATCH 3/6] mfd: intel_msic: Make it explicitly non-modular Mika Westerberg <mika.westerberg@linux.intel.com> - 2016-07-07 10:20 +0200
        Re: [PATCH 3/6] mfd: intel_msic: Make it explicitly non-modular Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2016-07-07 12:30 +0200
          Re: [PATCH 3/6] mfd: intel_msic: Make it explicitly non-modular Mika Westerberg <mika.westerberg@linux.intel.com> - 2016-07-07 12:40 +0200

csiph-web