X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fjtag%2Fdrivers%2Fosbdm.c;fp=src%2Fjtag%2Fdrivers%2Fosbdm.c;h=30c46234e7caf88fc51dd98bb572fe309fccbd6e;hp=3323557b7547f684179f3ec578cb9e2765beabe2;hb=93c6bf2cce5f23e37d4a1dd5136a40e74c69285c;hpb=8ce51b6a207e8cefdf5b6cb06d3c57d1cbef5a99 diff --git a/src/jtag/drivers/osbdm.c b/src/jtag/drivers/osbdm.c index 3323557b75..30c46234e7 100644 --- a/src/jtag/drivers/osbdm.c +++ b/src/jtag/drivers/osbdm.c @@ -132,7 +132,7 @@ static const uint16_t osbdm_vid[] = { 0x15a2, 0x15a2, 0x15a2, 0 }; static const uint16_t osbdm_pid[] = { 0x0042, 0x0058, 0x005e, 0 }; struct osbdm { - struct jtag_libusb_device_handle *devh; /* USB handle */ + struct libusb_device_handle *devh; /* USB handle */ uint8_t buffer[OSBDM_USB_BUFSIZE]; /* Data to send and receive */ int count; /* Count data to send and to read */ }; @@ -377,7 +377,7 @@ static int osbdm_open(struct osbdm *osbdm) if (jtag_libusb_open(osbdm_vid, osbdm_pid, NULL, &osbdm->devh) != ERROR_OK) return ERROR_FAIL; - if (jtag_libusb_claim_interface(osbdm->devh, 0) != ERROR_OK) + if (libusb_claim_interface(osbdm->devh, 0) != ERROR_OK) return ERROR_FAIL; return ERROR_OK;