Thread (18 messages) 18 messages, 6 authors, 2016-09-08
STALE3556d
Revisions (2)
  1. v1 current
  2. v2 [diff vs current]

[PATCH v1 1/3] nvmem: rockchip-efuse: Change initcall to subsys

From: Finlye Xiao <hidden>
Date: 2016-08-16 02:50:15
Also in: linux-devicetree, linux-pm, linux-rockchip, lkml
Subsystem: arm/rockchip soc support, nvmem framework, the rest · Maintainers: Heiko Stuebner, Srinivas Kandagatla, Linus Torvalds

From: Finley Xiao <redacted>

We will register a cpufreq notifier for adjusting opp's voltage, and it
need to fetch cpu's leakage from efuse in the notifier_call. so the efuse
driver should probe before cpufreq driver.

Signed-off-by: Finley Xiao <redacted>
---
 drivers/nvmem/rockchip-efuse.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/drivers/nvmem/rockchip-efuse.c b/drivers/nvmem/rockchip-efuse.c
index 4d3f391..378993d 100644
--- a/drivers/nvmem/rockchip-efuse.c
+++ b/drivers/nvmem/rockchip-efuse.c
@@ -144,6 +144,13 @@ static struct platform_driver rockchip_efuse_driver = {
 	},
 };
 
-module_platform_driver(rockchip_efuse_driver);
+static int __init rockchip_efuse_module_init(void)
+{
+	return platform_driver_probe(&rockchip_efuse_driver,
+				     rockchip_efuse_probe);
+}
+
+subsys_initcall(rockchip_efuse_module_init);
+
 MODULE_DESCRIPTION("rockchip_efuse driver");
 MODULE_LICENSE("GPL v2");
-- 
1.9.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help