Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354423
b: refs/heads/master
c: 07b502f
h: refs/heads/master
i:
  354421: 58ab23c
  354419: b5c6aa5
  354415: 64476ac
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Feb 6, 2013
1 parent 0d839eb commit 5f31503
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 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: 8b3cc3edb745cbc131560d19e3f32d81c07454b1
refs/heads/master: 07b502f50bfc290222fe4032501619a44bbd777e
23 changes: 1 addition & 22 deletions trunk/drivers/staging/comedi/drivers/vmk80xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1189,26 +1189,6 @@ static int vmk80xx_attach_common(struct comedi_device *cdev,
return 0;
}

/* called for COMEDI_DEVCONFIG ioctl for board_name "vmk80xx" */
static int vmk80xx_attach(struct comedi_device *cdev,
struct comedi_devconfig *it)
{
int i;
int ret;

mutex_lock(&glb_mutex);
for (i = 0; i < VMK80XX_MAX_BOARDS; i++)
if (vmb[i].probed && !vmb[i].attached)
break;
if (i == VMK80XX_MAX_BOARDS)
ret = -ENODEV;
else
ret = vmk80xx_attach_common(cdev, &vmb[i]);
mutex_unlock(&glb_mutex);
return ret;
}

/* called via comedi_usb_auto_config() */
static int vmk80xx_auto_attach(struct comedi_device *cdev,
unsigned long context_unused)
{
Expand Down Expand Up @@ -1245,9 +1225,8 @@ static void vmk80xx_detach(struct comedi_device *dev)
static struct comedi_driver vmk80xx_driver = {
.module = THIS_MODULE,
.driver_name = "vmk80xx",
.attach = vmk80xx_attach,
.detach = vmk80xx_detach,
.auto_attach = vmk80xx_auto_attach,
.detach = vmk80xx_detach,
};

static int vmk80xx_usb_probe(struct usb_interface *intf,
Expand Down

0 comments on commit 5f31503

Please sign in to comment.