summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2013-02-05 17:31:10 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-02-05 18:07:13 -0800
commit66dbc7b1b00499285793143b44b979e26141204d (patch)
treefa14e27a5f5828cbd456ed11ec201fd80e08324e /drivers
parent6dcbe00df71bd0559c32ef7e838eac1458ad24d6 (diff)
staging: comedi: vmk80xx: rename vmk80xx_attach_common()
In comedi drivers typically *_attach_common() is used as the 'common' part of the comedi_driver attach code for drivers that support various bus types (ISA, PCI, etc.). This driver is specific to a USB device. To avoid confusion when grepping, rename this function to something more appropriate. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/comedi/drivers/vmk80xx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/comedi/drivers/vmk80xx.c b/drivers/staging/comedi/drivers/vmk80xx.c
index d0ff0e7b119d..ebf2d4824860 100644
--- a/drivers/staging/comedi/drivers/vmk80xx.c
+++ b/drivers/staging/comedi/drivers/vmk80xx.c
@@ -1011,7 +1011,7 @@ static int vmk80xx_alloc_usb_buffers(struct comedi_device *dev)
return 0;
}
-static int vmk80xx_attach_common(struct comedi_device *dev)
+static int vmk80xx_init_subdevices(struct comedi_device *dev)
{
const struct vmk80xx_board *boardinfo = comedi_board(dev);
struct vmk80xx_private *devpriv = dev->private;
@@ -1151,7 +1151,7 @@ static int vmk80xx_auto_attach(struct comedi_device *dev,
if (devpriv->model == VMK8055_MODEL)
vmk80xx_reset_device(devpriv);
- return vmk80xx_attach_common(dev);
+ return vmk80xx_init_subdevices(dev);
}
static void vmk80xx_detach(struct comedi_device *dev)