Skip to content

Commit 1da80da

Browse files
milesdotchenmmind
authored andcommitted
clk: rockchip: use module_platform_driver_probe
Replace builtin_platform_driver_probe with module_platform_driver_probe because that rk3399 and rk3568 can be built as kernel modules. Fixes: 70d839e ("clk: rockchip: rk3399: Support module build") Fixes: cf911d8 ("clk: rockchip: add clock controller for rk3568") Cc: Heiko Stuebner <[email protected]> Cc: Stephen Boyd <[email protected]> Tested-by: Heiko Stuebner <[email protected]> Reviewed-by: Heiko Stuebner <[email protected]> Signed-off-by: Miles Chen <[email protected]> Reviewed-by: Stephen Boyd <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiko Stuebner <[email protected]>
1 parent bd2c1f6 commit 1da80da

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-
builtin_platform_driver_probe(clk_rk3399_driver, clk_rk3399_probe);
1659+
module_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-
builtin_platform_driver_probe(clk_rk3568_driver, clk_rk3568_probe);
1722+
module_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)