mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user