clk: rockchip: rk3588: allow insmod to succeed if no DT match

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I175e3200a41fd3a81059b90d1d6b77d47ea39913
This commit is contained in:
Tao Huang
2022-12-01 18:53:57 +08:00
parent 5305ba2860
commit e5e0f7afd8

View File

@@ -2456,6 +2456,7 @@ static void __init rk3588_clk_init(struct device_node *np)
CLK_OF_DECLARE(rk3588_cru, "rockchip,rk3588-cru", rk3588_clk_init);
#ifdef MODULE
struct clk_rk3588_inits {
void (*inits)(struct device_node *np);
};
@@ -2473,7 +2474,7 @@ static const struct of_device_id clk_rk3588_match_table[] = {
};
MODULE_DEVICE_TABLE(of, clk_rk3588_match_table);
static int __init clk_rk3588_probe(struct platform_device *pdev)
static int clk_rk3588_probe(struct platform_device *pdev)
{
struct device_node *np = pdev->dev.of_node;
const struct of_device_id *match;
@@ -2491,13 +2492,15 @@ static int __init clk_rk3588_probe(struct platform_device *pdev)
}
static struct platform_driver clk_rk3588_driver = {
.probe = clk_rk3588_probe,
.driver = {
.name = "clk-rk3588",
.of_match_table = clk_rk3588_match_table,
.suppress_bind_attrs = true,
},
};
builtin_platform_driver_probe(clk_rk3588_driver, clk_rk3588_probe);
module_platform_driver(clk_rk3588_driver);
MODULE_DESCRIPTION("Rockchip RK3588 Clock Driver");
MODULE_LICENSE("GPL");
#endif /* MODULE */