arm: rockchip: vcodec_service: allow no rockchip,grf in dts

Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
This commit is contained in:
Huang, Tao 2015-05-21 18:28:22 +08:00
parent a3933acd35
commit cdff984abf

View File

@ -2137,8 +2137,12 @@ static void vcodec_read_property(struct device_node *np,
pservice->grf_base = (u32*)RK_GRF_VIRT;
#endif
if (IS_ERR(pservice->grf_base)) {
#ifdef CONFIG_ARM
pservice->grf_base = RK_GRF_VIRT;
#else
vpu_err("can't find vpu grf property\n");
return;
#endif
}
of_property_read_string(np, "name", (const char**)&pservice->name);
}