soc: rockchip: grf: allow insmod to succeed if no DT match

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I1bc31e2e67bfcedf91f890780bcbae62d538b6d9
This commit is contained in:
Tao Huang
2022-11-30 19:50:34 +08:00
parent 7c2d6bfd55
commit ea5e44076e

View File

@@ -319,7 +319,7 @@ static int __init rockchip_grf_init(void)
np = of_find_matching_node_and_match(NULL, rockchip_grf_dt_match,
&match);
if (!np)
return -ENODEV;
return 0;
if (!match || !match->data) {
pr_err("%s: missing grf data\n", __func__);
return -EINVAL;