projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dm: Move the tree/uclass dump code into its own file
[oweals/u-boot.git]
/
test
/
dm
/
test-driver.c
diff --git
a/test/dm/test-driver.c
b/test/dm/test-driver.c
index bc6a6e721d4922a524dc0c1affa77e98085741da..d10af5114738cc62f3e077a7b47de5d2c90f58ae 100644
(file)
--- a/
test/dm/test-driver.c
+++ b/
test/dm/test-driver.c
@@
-12,11
+12,11
@@
#include <errno.h>
#include <malloc.h>
#include <dm/test.h>
#include <errno.h>
#include <malloc.h>
#include <dm/test.h>
-#include <
dm
/ut.h>
+#include <
test
/ut.h>
#include <asm/io.h>
int dm_testdrv_op_count[DM_TEST_OP_COUNT];
#include <asm/io.h>
int dm_testdrv_op_count[DM_TEST_OP_COUNT];
-static struct
dm_test_state *dms = &global
_test_state;
+static struct
unit_test_state *uts = &global_dm
_test_state;
static int testdrv_ping(struct udevice *dev, int pingval, int *pingret)
{
static int testdrv_ping(struct udevice *dev, int pingval, int *pingret)
{
@@
-114,6
+114,8
@@
static int test_manual_bind(struct udevice *dev)
static int test_manual_probe(struct udevice *dev)
{
static int test_manual_probe(struct udevice *dev)
{
+ struct dm_test_state *dms = uts->priv;
+
dm_testdrv_op_count[DM_TEST_OP_PROBE]++;
if (!dms->force_fail_alloc)
dev->priv = calloc(1, sizeof(struct dm_test_priv));
dm_testdrv_op_count[DM_TEST_OP_PROBE]++;
if (!dms->force_fail_alloc)
dev->priv = calloc(1, sizeof(struct dm_test_priv));