rockchip: display: handle error when there is no 'mcu-timing'
The 'mcu-timing' may not in dts, and the following access will cause assert of invalid of_node. Change-Id: I98cfed0de471b8985642e7ffc14ab2e97ef6f575 Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
parent
dcb7870427
commit
a196d7fc6a
|
|
@ -1040,6 +1040,8 @@ static int get_crtc_mcu_mode(struct crtc_state *crtc_state)
|
|||
int total_pixel, cs_pst, cs_pend, rw_pst, rw_pend;
|
||||
|
||||
mcu_node = dev_read_subnode(crtc_state->dev, "mcu-timing");
|
||||
if (!ofnode_valid(mcu_node))
|
||||
return -ENODEV;
|
||||
|
||||
#define FDT_GET_MCU_INT(val, name) \
|
||||
do { \
|
||||
|
|
|
|||
Loading…
Reference in New Issue