]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: amplc_dio200: Change return type of dio200_find_pci()
authorIan Abbott <abbotti@mev.co.uk>
Thu, 31 May 2012 13:08:35 +0000 (14:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Jun 2012 03:49:20 +0000 (20:49 -0700)
commit8a1eddca78b8414bc099dab825e848194ddf4e14
tree59f145143db0a8fb7e2e5c8366c48a3cd096ce2c
parent77c67ba278fddef27fc885cc4233a62ddd6c186e
staging: comedi: amplc_dio200: Change return type of dio200_find_pci()

dio200_find_pci() finds a supported PCI device, returning 0 on success
or -EIO on failure and returning the pointer to the PCI device via a
struct pci_dev ** parameter.  Change it to return the struct pci_dev *
on success or NULL on failure.

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