Skip to content

Commit

Permalink
staging: comedi: vmk80xx: use auto_attach() hook
Browse files Browse the repository at this point in the history
Use the new `auto_attach()` hook in the `struct comedi_driver` instead
of the old `attach_usb()` hook.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Ian Abbott authored and Greg Kroah-Hartman committed Oct 29, 2012
1 parent 0a577b8 commit 392ba7b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/staging/comedi/drivers/vmk80xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1209,9 +1209,10 @@ static int vmk80xx_attach(struct comedi_device *cdev,
}

/* called via comedi_usb_auto_config() */
static int vmk80xx_attach_usb(struct comedi_device *cdev,
struct usb_interface *intf)
static int vmk80xx_auto_attach(struct comedi_device *cdev,
unsigned long context_unused)
{
struct usb_interface *intf = comedi_to_usb_interface(cdev);
int i;
int ret;

Expand Down Expand Up @@ -1246,7 +1247,7 @@ static struct comedi_driver vmk80xx_driver = {
.driver_name = "vmk80xx",
.attach = vmk80xx_attach,
.detach = vmk80xx_detach,
.attach_usb = vmk80xx_attach_usb,
.auto_attach = vmk80xx_auto_attach,
};

static int vmk80xx_usb_probe(struct usb_interface *intf,
Expand Down

0 comments on commit 392ba7b

Please sign in to comment.