aboutsummaryrefslogtreecommitdiff
path: root/test/dm/of_platdata.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/dm/of_platdata.c')
-rw-r--r--test/dm/of_platdata.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/dm/of_platdata.c b/test/dm/of_platdata.c
index 7cbb116..f2b45b9 100644
--- a/test/dm/of_platdata.c
+++ b/test/dm/of_platdata.c
@@ -146,6 +146,10 @@ static int dm_test_of_plat_dev(struct unit_test_state *uts)
bool found[n_ents];
uint i;
+ /* Skip this test if there is no platform data */
+ if (CONFIG_IS_ENABLED(OF_PLATDATA_INST))
+ return 0;
+
/* Record the indexes that are found */
memset(found, '\0', sizeof(found));
ut_assertok(find_driver_info(uts, gd->dm_root, found));