]> Pileus Git - ~andy/linux/commitdiff
staging: comedi: remove attach_pci and attach_usb handlers
authorIan Abbott <abbotti@mev.co.uk>
Wed, 14 Nov 2012 13:10:39 +0000 (13:10 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Nov 2012 00:25:48 +0000 (16:25 -0800)
No comedi drivers set the `attach_pci()` or `attach_usb()` handlers in
their `struct comedi_driver` any longer as they have all been replaced
with an `auto_attach()` handler.  Also, no code calls the `attach_pci()`
or `attach_usb()` handlers any longer.  Remove them from `struct
comedi_driver`.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedidev.h

index 5af3579337eb75326d5a03a875a16cf5534a3b37..ce6ab93b754cc149b8cbe56202d399fde4ae7d7c 100644 (file)
@@ -201,8 +201,6 @@ struct comedi_driver {
        struct module *module;
        int (*attach) (struct comedi_device *, struct comedi_devconfig *);
        void (*detach) (struct comedi_device *);
-       int (*attach_pci) (struct comedi_device *, struct pci_dev *);
-       int (*attach_usb) (struct comedi_device *, struct usb_interface *);
        int (*auto_attach) (struct comedi_device *, unsigned long);
 
        /* number of elements in board_name and board_id arrays */