Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303556
b: refs/heads/master
c: 72b27a0
h: refs/heads/master
v: v3
  • Loading branch information
Adhir Ramjiawan authored and Greg Kroah-Hartman committed Apr 18, 2012
1 parent 47d6d9c commit a8884dc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1c1301ddd1799fbdec2fc74bd7226cfd94edff78
refs/heads/master: 72b27a07efe8c7d63bc117d63e2b584a26d97e7c
8 changes: 6 additions & 2 deletions trunk/drivers/usb/serial/ti_usb_3410_5052.c
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,9 @@ static int ti_startup(struct usb_serial *serial)

/* if we have only 1 configuration, download firmware */
if (dev->descriptor.bNumConfigurations == 1) {
if ((status = ti_download_firmware(tdev)) != 0)
status = ti_download_firmware(tdev);

if (status != 0)
goto free_tdev;

/* 3410 must be reset, 5052 resets itself */
Expand Down Expand Up @@ -1683,7 +1685,9 @@ static int ti_download_firmware(struct ti_device *tdev)
/* try ID specific firmware first, then try generic firmware */
sprintf(buf, "ti_usb-v%04x-p%04x.fw", dev->descriptor.idVendor,
dev->descriptor.idProduct);
if ((status = request_firmware(&fw_p, buf, &dev->dev)) != 0) {
status = request_firmware(&fw_p, buf, &dev->dev);

if (status != 0) {
buf[0] = '\0';
if (dev->descriptor.idVendor == MTS_VENDOR_ID) {
switch (dev->descriptor.idProduct) {
Expand Down

0 comments on commit a8884dc

Please sign in to comment.