staging: comedi: gsc_hpdi: use auto_attach method
authorIan Abbott <abbotti@mev.co.uk>
Thu, 1 Nov 2012 16:28:27 +0000 (16:28 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Nov 2012 19:33:22 +0000 (12:33 -0700)
commit4e95df1f482412162ef03fe3a877aa95706b36b9
treee339ce479b79dae3d363ec28e9f147640995eb04
parent986842dd579aa6a797ed2dee8c35e45ad4c6ec89
staging: comedi: gsc_hpdi: use auto_attach method

This driver does not need to support manual attachment of supported PCI
devices.  Replace the `attach()` hook (`hpdi_attach()`) with an
`auto_attach()` hook (`hpdi_auto_attach()`).  This will be called via
`comedi_pci_auto_config()` at PCI probe time.

This driver no longer increments the PCI reference during attachment, so
remove the call to `pci_dev_put()` when detaching the device.

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