aboutsummaryrefslogtreecommitdiff
path: root/src/jtag_scan.c
diff options
context:
space:
mode:
authorGareth McMullin2012-07-05 19:23:28 +1200
committerGareth McMullin2012-07-05 19:23:28 +1200
commit00c4dbfb11e389176bdb2d45a262eb47229cd80b (patch)
treefcd39820419eaece7a4a8a5ed81fefc1702bac66 /src/jtag_scan.c
parentaf1ef670ba50a29546fa165f159f66fe5d2d0868 (diff)
ADIv5 AP and DP are now allocated on the heap and reference counted.
They are unref'd and free'd automatically when the target list is destroyed.
Diffstat (limited to 'src/jtag_scan.c')
-rw-r--r--src/jtag_scan.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/jtag_scan.c b/src/jtag_scan.c
index 0084e2e..6f733de 100644
--- a/src/jtag_scan.c
+++ b/src/jtag_scan.c
@@ -107,9 +107,6 @@ int jtag_scan(const uint8_t *irlens)
jtag_dev_count = 0;
memset(&jtag_devs, 0, sizeof(jtag_devs));
-#warning "These should be elsewhere!"
- adiv5_free_all();
-
/* Run throught the SWD to JTAG sequence for the case where an attached SWJ-DP is
* in SW-DP mode.
*/