]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: test: Don't clear global_data in dm_test_uclass_before_ready()
authorSimon Glass <sjg@chromium.org>
Sun, 19 Apr 2015 13:21:02 +0000 (07:21 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:30:11 +0000 (22:30 +0200)
commit03d65bb7fad57cef3dde3f7a17e74c5a6c4a24cf
tree69cf824ef0d636e98c0dae4bf4d4332fed7f0ff9
parentf8fc4cc60d6da22622e3b86a34241bf8175c45ea
dm: test: Don't clear global_data in dm_test_uclass_before_ready()

We must not clear global_data even in tests, since the ram_buffer (which
is used by malloc()) will also be lost, and subsequent tests will fail.

Zero only the global_data fields that are required for the test to function.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
Tested-by: Joe Hershberger <joe.hershberger@ni.com>
test/dm/core.c