Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354436
b: refs/heads/master
c: b105ad8
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Feb 6, 2013
1 parent e819ffc commit 729b2f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 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: db7dabf707f1eb3c4288ca8bedd4b2aa6701ca7b
refs/heads/master: b105ad8a78456fbcdb81e98076e9c3813cdb0be0
9 changes: 2 additions & 7 deletions trunk/drivers/staging/comedi/drivers/vmk80xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ struct vmk80xx_private {
unsigned char *usb_rx_buf;
unsigned char *usb_tx_buf;
unsigned long flags;
int probed;
int attached;
};

Expand Down Expand Up @@ -529,8 +528,6 @@ static int rudimentary_check(struct vmk80xx_private *devpriv, int dir)
{
if (!devpriv)
return -EFAULT;
if (!devpriv->probed)
return -ENODEV;
if (!devpriv->attached)
return -ENODEV;
if (dir & DIR_IN) {
Expand Down Expand Up @@ -1299,7 +1296,7 @@ static int vmk80xx_auto_attach(struct comedi_device *dev,

mutex_lock(&glb_mutex);
for (i = 0; i < VMK80XX_MAX_BOARDS; i++)
if (vmb[i].probed && vmb[i].intf == intf)
if (vmb[i].intf == intf)
break;
if (i == VMK80XX_MAX_BOARDS)
ret = -ENODEV;
Expand Down Expand Up @@ -1361,7 +1358,7 @@ static int vmk80xx_usb_probe(struct usb_interface *intf,
mutex_lock(&glb_mutex);

for (i = 0; i < VMK80XX_MAX_BOARDS; i++)
if (!vmb[i].probed)
if (!vmb[i].intf)
break;

if (i == VMK80XX_MAX_BOARDS) {
Expand Down Expand Up @@ -1409,8 +1406,6 @@ static int vmk80xx_usb_probe(struct usb_interface *intf,
if (boardinfo->model == VMK8055_MODEL)
vmk80xx_reset_device(devpriv);

devpriv->probed = 1;

mutex_unlock(&glb_mutex);

comedi_usb_auto_config(intf, &vmk80xx_driver);
Expand Down

0 comments on commit 729b2f8

Please sign in to comment.