commit | 51a0eac4892e4282f996371fe82682ec0b7081df | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sun Apr 19 07:21:02 2015 -0600 |
committer | Simon Glass <sjg@chromium.org> | Wed Apr 22 11:15:36 2015 -0600 |
tree | b6317bac1f4d74ad4152a6ed60afbdf0531e1fe3 | |
parent | 39f158ea2e392fafcfaaf27f4a29d95827177da4 [diff] |
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>