mirror of
https://github.com/torvalds/linux.git
synced 2026-11-23 23:11:40 +00:00
drm/msm: Use of_get_available_child_by_name()
Simplify zap_shader_load_mdt() by using of_get_available_child_by_name(). Signed-off-by: Biju Das <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/635020/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]>
This commit is contained in:
committed by
Dmitry Baryshkov
parent
f94aa7e9cf
commit
a972d1b864
@@ -45,8 +45,8 @@ static int zap_shader_load_mdt(struct msm_gpu *gpu, const char *fwname,
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
np = of_get_child_by_name(dev->of_node, "zap-shader");
|
||||
if (!of_device_is_available(np)) {
|
||||
np = of_get_available_child_by_name(dev->of_node, "zap-shader");
|
||||
if (!np) {
|
||||
zap_available = false;
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user