From: Paul Gortmaker <paul.gortmaker@windriver.com>
To: linux-kernel@vger.kernel.org
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>,
Linus Walleij <linus.walleij@linaro.org>,
Shawn Guo <shawn.guo@linaro.org>,
linux-gpio@vger.kernel.org
Subject: [PATCH 10/19] pinctrl: imx6dl: make it explicitly non-modular
Date: Sat, 25 Jun 2016 22:46:43 -0400 [thread overview]
Message-ID: <20160626024652.5081-11-paul.gortmaker@windriver.com> (raw)
In-Reply-To: <20160626024652.5081-1-paul.gortmaker@windriver.com>
The Kconfig currently controlling compilation of this code is:
drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX6Q
drivers/pinctrl/freescale/Kconfig: bool "IMX6Q/DL pinctrl driver"
...meaning that it currently is not being built as a module by anyone.
Lets remove the modular code that is essentially orphaned, so that
when reading the driver there is no doubt it is builtin-only.
Since module_init was not in use by this driver, 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.
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Shawn Guo <shawn.guo@linaro.org>
Cc: linux-gpio@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---
drivers/pinctrl/freescale/pinctrl-imx6dl.c | 14 +++-----------
1 file changed, 3 insertions(+), 11 deletions(-)
diff --git a/drivers/pinctrl/freescale/pinctrl-imx6dl.c b/drivers/pinctrl/freescale/pinctrl-imx6dl.c
index de17bac8ad89..3f25ca5867cc 100644
--- a/drivers/pinctrl/freescale/pinctrl-imx6dl.c
+++ b/drivers/pinctrl/freescale/pinctrl-imx6dl.c
@@ -1,4 +1,7 @@
/*
+ * Freescale imx6dl pinctrl driver
+ *
+ * Author: Shawn Guo <shawn.guo@linaro.org>
* Copyright (C) 2013 Freescale Semiconductor, Inc.
*
* This program is free software; you can redistribute it and/or modify
@@ -9,7 +12,6 @@
#include <linux/err.h>
#include <linux/init.h>
#include <linux/io.h>
-#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/pinctrl/pinctrl.h>
@@ -484,13 +486,3 @@ static int __init imx6dl_pinctrl_init(void)
return platform_driver_register(&imx6dl_pinctrl_driver);
}
arch_initcall(imx6dl_pinctrl_init);
-
-static void __exit imx6dl_pinctrl_exit(void)
-{
- platform_driver_unregister(&imx6dl_pinctrl_driver);
-}
-module_exit(imx6dl_pinctrl_exit);
-
-MODULE_AUTHOR("Shawn Guo <shawn.guo@linaro.org>");
-MODULE_DESCRIPTION("Freescale imx6dl pinctrl driver");
-MODULE_LICENSE("GPL v2");
--
2.8.4
next prev parent reply other threads:[~2016-06-26 2:46 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-26 2:46 [PATCH 00/19] pinctrl/freescale: fix module usage in non-modular code Paul Gortmaker
2016-06-26 2:46 ` [PATCH 01/19] pinctrl: freescale: remove needless module.h include Paul Gortmaker
2016-06-29 7:30 ` Linus Walleij
2016-06-26 2:46 ` [PATCH 02/19] pinctrl: imx1: make it explicitly non-modular Paul Gortmaker
2016-06-29 7:31 ` Linus Walleij
2016-06-26 2:46 ` [PATCH 03/19] pinctrl: imx21: " Paul Gortmaker
2016-06-29 7:32 ` Linus Walleij
2016-06-26 2:46 ` [PATCH 04/19] pinctrl: imx25: " Paul Gortmaker
2016-06-29 7:33 ` Linus Walleij
2016-06-26 2:46 ` [PATCH 05/19] pinctrl: imx27: " Paul Gortmaker
2016-06-29 7:34 ` Linus Walleij
2016-06-26 2:46 ` [PATCH 06/19] pinctrl: imx35: " Paul Gortmaker
2016-06-29 7:35 ` Linus Walleij
2016-06-26 2:46 ` [PATCH 07/19] pinctrl: imx50: " Paul Gortmaker
2016-06-29 7:36 ` Linus Walleij
2016-06-26 2:46 ` [PATCH 08/19] pinctrl: imx51: " Paul Gortmaker
2016-06-29 7:37 ` Linus Walleij
2016-06-26 2:46 ` [PATCH 09/19] pinctrl: imx53: " Paul Gortmaker
2016-06-29 7:38 ` Linus Walleij
2016-06-26 2:46 ` Paul Gortmaker [this message]
2016-06-29 7:39 ` [PATCH 10/19] pinctrl: imx6dl: " Linus Walleij
2016-06-26 2:46 ` [PATCH 11/19] pinctrl: imx6q: " Paul Gortmaker
2016-06-29 7:49 ` Linus Walleij
2016-06-26 2:46 ` [PATCH 12/19] pinctrl: imx6sl: " Paul Gortmaker
2016-06-29 7:50 ` Linus Walleij
2016-06-26 2:46 ` [PATCH 13/19] pinctrl: imx6sx: " Paul Gortmaker
2016-06-29 7:51 ` Linus Walleij
2016-06-26 2:46 ` [PATCH 14/19] pinctrl: imx6ul: " Paul Gortmaker
2016-06-29 7:52 ` Linus Walleij
2016-06-26 2:46 ` [PATCH 15/19] pinctrl: imx7d: " Paul Gortmaker
2016-06-29 7:53 ` Linus Walleij
2016-06-26 2:46 ` [PATCH 16/19] pinctrl: vf610: " Paul Gortmaker
2016-06-29 7:54 ` Linus Walleij
2016-06-26 2:46 ` [PATCH 17/19] pinctrl: imx23: " Paul Gortmaker
2016-06-29 7:55 ` Linus Walleij
2016-06-26 2:46 ` [PATCH 18/19] pinctrl: imx28: " Paul Gortmaker
2016-06-29 7:55 ` Linus Walleij
2016-06-26 2:46 ` [PATCH 19/19] pinctrl: remove orphaned exported ".remove" function Paul Gortmaker
2016-06-29 7:56 ` Linus Walleij
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160626024652.5081-11-paul.gortmaker@windriver.com \
--to=paul.gortmaker@windriver.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shawn.guo@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).