Skip to content
Commit 36af37b9 authored by Simon Glass's avatar Simon Glass
Browse files

dm: test: Add a check that all devices have a dev value



With of-platdata, the driver_info struct is updated with the device
pointer when it is bound. This makes it easy for a device to be found by
its driver info with the device_get_by_driver_info() function.

Add a test that all devices (except the root device) have such an entry.
Fix a bug that the function does not set *devp to NULL on failure, which
the documentation asserts.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent b325248c
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