Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202054
b: refs/heads/master
c: 8b0d704
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and Mauro Carvalho Chehab committed Aug 2, 2010
1 parent 1676553 commit 14876d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: 128fe95d77d6c5239ce6af6c3edacafc79eb0a39
refs/heads/master: 8b0d7048dc2f0d2e4344bc8aaf85b4f14196145f
10 changes: 6 additions & 4 deletions trunk/drivers/media/dvb/dvb-usb/anysee.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,11 @@ static int anysee_probe(struct usb_interface *intf,
if (intf->num_altsetting < 1)
return -ENODEV;

/*
* Anysee is always warm (its USB-bridge, Cypress FX2, uploads
* firmware from eeprom). If dvb_usb_device_init() succeeds that
* means d is a valid pointer.
*/
ret = dvb_usb_device_init(intf, &anysee_properties, THIS_MODULE, &d,
adapter_nr);
if (ret)
Expand All @@ -479,10 +484,7 @@ static int anysee_probe(struct usb_interface *intf,
if (ret)
return ret;

if (d)
ret = anysee_init(d);

return ret;
return anysee_init(d);
}

static struct usb_device_id anysee_table[] = {
Expand Down

0 comments on commit 14876d8

Please sign in to comment.