mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
drm/rockchip: backlight: fix compile warning
warning: Access to field 'dev' results in a dereference of a null pointer (loaded from variable 'panel') Change-Id: I0f4224b47b3b7c16a9022e19f8de28df66784a7f Signed-off-by: Sandy Huang <hjc@rock-chips.com>
This commit is contained in:
parent
7bd13a986e
commit
62779bcb89
|
|
@ -307,7 +307,7 @@ static int rockchip_drm_backlight_bind(struct device *dev,
|
|||
|
||||
drm_for_each_connector(connector, drm_dev) {
|
||||
panel = drm_find_panel_by_connector(connector);
|
||||
if (!panel && !panel->dev)
|
||||
if (!panel || !panel->dev)
|
||||
continue;
|
||||
backlight_np = of_parse_phandle(panel->dev->of_node,
|
||||
"backlight", 0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user