aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMathias K <kesmtp@freenet.de>2012-02-16 18:00:07 +0100
committerSpencer Oliver <spen@spen-soft.co.uk>2012-02-16 17:19:57 +0000
commitd8b912755d3d47419584b51186b77dc48c5fee23 (patch)
treef8e343056a070134dcf519ace5344f5a617eabe6 /src
parent0a98914700d7e77da6e49a55aaf56e550ed725ea (diff)
downloadriscv-openocd-d8b912755d3d47419584b51186b77dc48c5fee23.zip
riscv-openocd-d8b912755d3d47419584b51186b77dc48c5fee23.tar.gz
riscv-openocd-d8b912755d3d47419584b51186b77dc48c5fee23.tar.bz2
Fix typo that result in recursion.
Change-Id: Ie1102b4960bcb5acb254eae69b94fe87ab33dd0b Signed-off-by: Mathias K <kesmtp@freenet.de> Reviewed-on: http://openocd.zylin.com/462 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/jtag/drivers/libusb0_common.c2
-rw-r--r--src/jtag/drivers/libusb1_common.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/jtag/drivers/libusb0_common.c b/src/jtag/drivers/libusb0_common.c
index 9f6cec7..c731ee5 100644
--- a/src/jtag/drivers/libusb0_common.c
+++ b/src/jtag/drivers/libusb0_common.c
@@ -64,7 +64,7 @@ int jtag_libusb_open(const uint16_t vids[], const uint16_t pids[],
void jtag_libusb_close(jtag_libusb_device_handle *dev)
{
/* Close device */
- jtag_libusb_close(dev);
+ usb_close(dev);
}
int jtag_libusb_bulk_write(jtag_libusb_device_handle *dev, int ep, char *bytes,
diff --git a/src/jtag/drivers/libusb1_common.c b/src/jtag/drivers/libusb1_common.c
index dcca8d1..194f737 100644
--- a/src/jtag/drivers/libusb1_common.c
+++ b/src/jtag/drivers/libusb1_common.c
@@ -74,7 +74,7 @@ int jtag_libusb_open(const uint16_t vids[], const uint16_t pids[],
void jtag_libusb_close(jtag_libusb_device_handle *dev)
{
/* Close device */
- jtag_libusb_close(dev);
+ libusb_close(dev);
libusb_exit(jtag_libusb_context);
}