]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: jr3_pci: remove devpriv->pci_dev
authorIan Abbott <abbotti@mev.co.uk>
Thu, 1 Nov 2012 18:34:37 +0000 (18:34 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Nov 2012 19:35:56 +0000 (12:35 -0700)
commit19d6ce544631bd6cc1649696423715c7142e85b8
tree223da3c937994c2fa5fed6d51ef2c144ef19a9ca
parent6af0cf7678de21ca4d20980debbfc852640055ae
staging: comedi: jr3_pci: remove devpriv->pci_dev

The `pci_dev` member of `struct jr3_pci_dev_private` is used to point to
the `struct pci_dev`.  This is redundant as the `struct comedi_device`
already has a pointer to the `struct device` within the `struct pci_dev`
and there is a convenient inline function, `comedi_to_pci_dev(dev)` that
returns a pointer to the `struct pci_dev`.

Remove the redundant `pci_dev` member and use alternate ways to get at
the `struct pci_dev`.

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