staging: comedi: jr3_pci: remove devpriv->pci_enabled
authorIan Abbott <abbotti@mev.co.uk>
Thu, 1 Nov 2012 18:34:38 +0000 (18:34 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Nov 2012 19:35:57 +0000 (12:35 -0700)
commited610aa04c283e1dbe4de769a58fec27b1259d3d
tree9b38939b5f5fcd510a90c772b6d55617de3ab92a
parent19d6ce544631bd6cc1649696423715c7142e85b8
staging: comedi: jr3_pci: remove devpriv->pci_enabled

The `pci_enabled` member of `struct jr3_pci_dev_private` is used to
indicate whether the call to `comedi_pci_enable()` was successful.  The
'detach' routine `jr3_pci_detach()` uses this to decide whether to call
`comedi_pci_disable()`.  The `iobase` member of `struct comedi_device`
is not used by this driver so it can be used for the same purpose.

Remove the `pci_enabled` member and use the spare `dev->iobase` instead.

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