Skip to content

Commit 000590a

Browse files
mmindbebarino
authored andcommitted
Revert "clk: rockchip: use module_platform_driver_probe"
This reverts commit 1da80da. Reading recent discussions [0] [1], I realized this change introduces a number of problems: - only converting to module_platform_driver creates the issue with the existing __init and __initdata attributes. When the driver would've been built as a module, all the missing clock-definitions (all are initdata) should've turned up as error in testing suggesting that the change wasn't at all - a clock driver is a very core component of soc bringup and making this able to be built as a module solely for enabling the soc vendor to add out of tree changes for Android implementations is not in our interest and also everything except a ramdisk won't probe without a clock controller. This is especially true when the changes aren't really tested and are merely added to move the mainline driver "out of the way". [0] https://lwn.net/Articles/872209/ [1] https://lore.kernel.org/all/[email protected]/ Signed-off-by: Heiko Stuebner <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Stephen Boyd <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent 59d9bcb commit 000590a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/clk/rockchip/clk-rk3399.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1656,7 +1656,7 @@ static struct platform_driver clk_rk3399_driver = {
16561656
.suppress_bind_attrs = true,
16571657
},
16581658
};
1659-
module_platform_driver_probe(clk_rk3399_driver, clk_rk3399_probe);
1659+
builtin_platform_driver_probe(clk_rk3399_driver, clk_rk3399_probe);
16601660

16611661
MODULE_DESCRIPTION("Rockchip RK3399 Clock Driver");
16621662
MODULE_LICENSE("GPL");

drivers/clk/rockchip/clk-rk3568.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1719,7 +1719,7 @@ static struct platform_driver clk_rk3568_driver = {
17191719
.suppress_bind_attrs = true,
17201720
},
17211721
};
1722-
module_platform_driver_probe(clk_rk3568_driver, clk_rk3568_probe);
1722+
builtin_platform_driver_probe(clk_rk3568_driver, clk_rk3568_probe);
17231723

17241724
MODULE_DESCRIPTION("Rockchip RK3568 Clock Driver");
17251725
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)