mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 16:44:58 +02:00
media: platform: exynos4-is: Use of_get_available_child_by_name()
Simplify fimc_md_is_isp_available() by using of_get_available_child_by_name(). Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
This commit is contained in:
parent
29c71dc4c8
commit
051e634ee4
|
|
@ -179,8 +179,8 @@ int fimc_md_set_camclk(struct v4l2_subdev *sd, bool on);
|
|||
static inline bool fimc_md_is_isp_available(struct device_node *node)
|
||||
{
|
||||
struct device_node *child __free(device_node) =
|
||||
of_get_child_by_name(node, FIMC_IS_OF_NODE_NAME);
|
||||
return child ? of_device_is_available(child) : false;
|
||||
of_get_available_child_by_name(node, FIMC_IS_OF_NODE_NAME);
|
||||
return child;
|
||||
}
|
||||
#else
|
||||
#define fimc_md_is_isp_available(node) (false)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user