Skip to content

Commit 0a8d4ef

Browse files
finley1226wzyy2
authored andcommitted
nvmem: rockchip-efuse: Change initcall to subsys
We will add a avs driver to adjust opp's voltage according to leakage. As it need register a notifier before cpufreq starts, and make cpufreq defer probe is probably not really easy, so avs should probe earlier than cpufreq, efuse should probe earlier than avs. Change-Id: I817aa44c3b34d2fdf44148e6b9649ceed76d8f1f Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
1 parent 0f8e76e commit 0a8d4ef

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

drivers/nvmem/rockchip-efuse.c

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static const struct of_device_id rockchip_efuse_match[] = {
9494
};
9595
MODULE_DEVICE_TABLE(of, rockchip_efuse_match);
9696

97-
static int rockchip_efuse_probe(struct platform_device *pdev)
97+
static int __init rockchip_efuse_probe(struct platform_device *pdev)
9898
{
9999
struct resource *res;
100100
struct nvmem_device *nvmem;
@@ -136,14 +136,20 @@ static int rockchip_efuse_remove(struct platform_device *pdev)
136136
}
137137

138138
static struct platform_driver rockchip_efuse_driver = {
139-
.probe = rockchip_efuse_probe,
140139
.remove = rockchip_efuse_remove,
141140
.driver = {
142141
.name = "rockchip-efuse",
143142
.of_match_table = rockchip_efuse_match,
144143
},
145144
};
146145

147-
module_platform_driver(rockchip_efuse_driver);
146+
static int __init rockchip_efuse_module_init(void)
147+
{
148+
return platform_driver_probe(&rockchip_efuse_driver,
149+
rockchip_efuse_probe);
150+
}
151+
152+
subsys_initcall(rockchip_efuse_module_init);
153+
148154
MODULE_DESCRIPTION("rockchip_efuse driver");
149155
MODULE_LICENSE("GPL v2");

0 commit comments

Comments
 (0)