Skip to content

Commit

Permalink
clk: rockchip: use module_platform_driver_probe
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
milesdotchen authored and mmind committed Sep 20, 2021
1 parent bd2c1f6 commit 1da80da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/clk/rockchip/clk-rk3399.c
Original file line number Diff line number Diff line change
Expand Up @@ -1656,7 +1656,7 @@ static struct platform_driver clk_rk3399_driver = {
.suppress_bind_attrs = true,
},
};
builtin_platform_driver_probe(clk_rk3399_driver, clk_rk3399_probe);
module_platform_driver_probe(clk_rk3399_driver, clk_rk3399_probe);

MODULE_DESCRIPTION("Rockchip RK3399 Clock Driver");
MODULE_LICENSE("GPL");
2 changes: 1 addition & 1 deletion drivers/clk/rockchip/clk-rk3568.c
Original file line number Diff line number Diff line change
Expand Up @@ -1719,7 +1719,7 @@ static struct platform_driver clk_rk3568_driver = {
.suppress_bind_attrs = true,
},
};
builtin_platform_driver_probe(clk_rk3568_driver, clk_rk3568_probe);
module_platform_driver_probe(clk_rk3568_driver, clk_rk3568_probe);

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

0 comments on commit 1da80da

Please sign in to comment.