summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4ebcade)
raw | patch | inline | side by side (parent: 4ebcade)
author | Archit Taneja <archit@ti.com> | |
Thu, 30 May 2013 11:39:05 +0000 (17:09 +0530) | ||
committer | Archit Taneja <archit@ti.com> | |
Thu, 30 May 2013 23:03:39 +0000 (04:33 +0530) |
Change pinctrl-single driver's initcall level from module initcall to arch
initcall. This prevents dependent drivers not supporting deferred probe
mechanism from failing.
This is done for omapdss which doesn't support deferred probe yet. Deferred
probe for omapdss is complicated as init order between omapdss and it's users
(omapfb or omapdrm) is important, and deferred probe complicates that.
Signed-off-by: Archit Taneja <archit@ti.com>
initcall. This prevents dependent drivers not supporting deferred probe
mechanism from failing.
This is done for omapdss which doesn't support deferred probe yet. Deferred
probe for omapdss is complicated as init order between omapdss and it's users
(omapfb or omapdrm) is important, and deferred probe complicates that.
Signed-off-by: Archit Taneja <archit@ti.com>
drivers/pinctrl/pinctrl-single.c | patch | blob | history |
index 5c32e880bcb24315b4b2db260294106765eb4240..398949f4b052193a04f22f9081dc3c88598ad1a8 100644 (file)
},
};
-module_platform_driver(pcs_driver);
+static int __init pcs_init(void)
+{
+ return platform_driver_register(&pcs_driver);
+}
+arch_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");