2014-08-20 17:22:24 +00:00
|
|
|
From: Pantelis Antoniou <panto@antoniou-consulting.com>
|
|
|
|
Date: Sat, 15 Sep 2012 12:00:41 +0300
|
|
|
|
Subject: [PATCH] pinctrl: pinctrl-single must be initialized early.
|
|
|
|
|
|
|
|
When using pinctrl-single to handle i2c initialization, it has
|
|
|
|
to be done early. Whether this is the best way to do so, is an
|
|
|
|
exercise left to the reader.
|
|
|
|
---
|
|
|
|
drivers/pinctrl/pinctrl-single.c | 12 +++++++++++-
|
|
|
|
1 file changed, 11 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c
|
2015-04-15 14:47:18 +00:00
|
|
|
index 13b45f297727..f84ce0135c38 100644
|
2014-08-20 17:22:24 +00:00
|
|
|
--- a/drivers/pinctrl/pinctrl-single.c
|
|
|
|
+++ b/drivers/pinctrl/pinctrl-single.c
|
2015-01-05 21:09:49 +00:00
|
|
|
@@ -2025,7 +2025,17 @@ static struct platform_driver pcs_driver = {
|
2014-08-20 17:22:24 +00:00
|
|
|
#endif
|
|
|
|
};
|
|
|
|
|
|
|
|
-module_platform_driver(pcs_driver);
|
|
|
|
+static int __init pcs_init(void)
|
|
|
|
+{
|
|
|
|
+ return platform_driver_register(&pcs_driver);
|
|
|
|
+}
|
|
|
|
+postcore_initcall(pcs_init);
|
|
|
|
+
|
|
|
|
+static void __exit pcs_exit(void)
|
|
|
|
+{
|
|
|
|
+ platform_driver_unregister(&pcs_driver);
|
|
|
|
+}
|
|
|
|
+module_exit(pcs_exit);
|
|
|
|
|
|
|
|
MODULE_AUTHOR("Tony Lindgren <tony@atomide.com>");
|
|
|
|
MODULE_DESCRIPTION("One-register-per-pin type device tree based pinctrl driver");
|
|
|
|
--
|
2014-12-09 14:25:39 +00:00
|
|
|
2.1.0
|
2014-08-20 17:22:24 +00:00
|
|
|
|