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:
parent
7c2d6bfd55
commit
ea5e44076e
|
|
@ -319,7 +319,7 @@ static int __init rockchip_grf_init(void)
|
||||||
np = of_find_matching_node_and_match(NULL, rockchip_grf_dt_match,
|
np = of_find_matching_node_and_match(NULL, rockchip_grf_dt_match,
|
||||||
&match);
|
&match);
|
||||||
if (!np)
|
if (!np)
|
||||||
return -ENODEV;
|
return 0;
|
||||||
if (!match || !match->data) {
|
if (!match || !match->data) {
|
||||||
pr_err("%s: missing grf data\n", __func__);
|
pr_err("%s: missing grf data\n", __func__);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue