Skip to content
Commit ed48da33 authored by Marek Vasut's avatar Marek Vasut Committed by Tom Rini
Browse files

test: dm: test-fdt: Use fdtdec_get_int() in dm_check_devices()



The current fdtdec_get_addr() takes into consideration #address-cells
and #size-cells for "ping-expect" property which is clearly neither.
Use fdtdec_get_int() instead and return negative one in case the
property is not in DT or the platform under test is not DT based,
i.e. mimic the current fdtdec_get_addr() behavior.

This fixes ut dm dm_test_bus_children test.

Signed-off-by: default avatarMarek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent e342b91a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment