[U-Boot] [PATCHv1 13/14] reset: test: remove sandbox_reset_test_free function
Dinh Nguyen
dinguyen at kernel.org
Sat Apr 14 18:51:39 UTC 2018
Remove sandbox_reset_test_free() because it calls reset_free, which is
being removed.
Signed-off-by: Dinh Nguyen <dinguyen at kernel.org>
---
arch/sandbox/include/asm/reset.h | 1 -
drivers/reset/sandbox-reset-test.c | 7 -------
test/dm/reset.c | 2 --
3 files changed, 10 deletions(-)
diff --git a/arch/sandbox/include/asm/reset.h b/arch/sandbox/include/asm/reset.h
index 0cd7702..c54b266 100644
--- a/arch/sandbox/include/asm/reset.h
+++ b/arch/sandbox/include/asm/reset.h
@@ -19,7 +19,6 @@ int sandbox_reset_test_assert(struct udevice *dev);
int sandbox_reset_test_assert_bulk(struct udevice *dev);
int sandbox_reset_test_deassert(struct udevice *dev);
int sandbox_reset_test_deassert_bulk(struct udevice *dev);
-int sandbox_reset_test_free(struct udevice *dev);
int sandbox_reset_test_release_bulk(struct udevice *dev);
#endif
diff --git a/drivers/reset/sandbox-reset-test.c b/drivers/reset/sandbox-reset-test.c
index f0ceaa0..91a1f6e 100644
--- a/drivers/reset/sandbox-reset-test.c
+++ b/drivers/reset/sandbox-reset-test.c
@@ -57,13 +57,6 @@ int sandbox_reset_test_deassert_bulk(struct udevice *dev)
return reset_deassert_bulk(&sbrt->bulk);
}
-int sandbox_reset_test_free(struct udevice *dev)
-{
- struct sandbox_reset_test *sbrt = dev_get_priv(dev);
-
- return reset_free(&sbrt->ctl);
-}
-
int sandbox_reset_test_release_bulk(struct udevice *dev)
{
struct sandbox_reset_test *sbrt = dev_get_priv(dev);
diff --git a/test/dm/reset.c b/test/dm/reset.c
index 8dc0023..289693d 100644
--- a/test/dm/reset.c
+++ b/test/dm/reset.c
@@ -35,8 +35,6 @@ static int dm_test_reset(struct unit_test_state *uts)
ut_assertok(sandbox_reset_test_deassert(dev_test));
ut_asserteq(0, sandbox_reset_query(dev_reset, TEST_RESET_ID));
- ut_assertok(sandbox_reset_test_free(dev_test));
-
return 0;
}
DM_TEST(dm_test_reset, DM_TESTF_SCAN_FDT);
--
2.7.4
More information about the U-Boot
mailing list