Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <biju.das.jz@bp.renesas.com>
Patchwork: https://patchwork.freedesktop.org/patch/635020/
Link: https://lore.kernel.org/r/20250201155830.39366-1-biju.das.jz@bp.renesas.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>

authored by

Biju Das and committed by
Dmitry Baryshkov
a972d1b8 f94aa7e9

+2 -2
+2 -2
drivers/gpu/drm/msm/adreno/adreno_gpu.c
··· 45 45 return -EINVAL; 46 46 } 47 47 48 - np = of_get_child_by_name(dev->of_node, "zap-shader"); 49 - if (!of_device_is_available(np)) { 48 + np = of_get_available_child_by_name(dev->of_node, "zap-shader"); 49 + if (!np) { 50 50 zap_available = false; 51 51 return -ENODEV; 52 52 }