This resolves all the resolvable checkpatch.pl issues in the
comedi_pci.h file.
Cc: David Schleef <ds@schleef.org>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
#ifndef _COMEDI_PCI_H_
#define _COMEDI_PCI_H_
#ifndef _COMEDI_PCI_H_
#define _COMEDI_PCI_H_
-#include <linux/version.h>
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)
-#define PCI_ENABLE_IS_REFCOUNTED
-#endif
-
/*
* Enables PCI device without requesting regions. Just a simple wrapper
* for pci_enable_device().
/*
* Enables PCI device without requesting regions. Just a simple wrapper
* for pci_enable_device().
*/
static inline void comedi_pci_disable_no_regions(struct pci_dev *pdev)
{
*/
static inline void comedi_pci_disable_no_regions(struct pci_dev *pdev)
{
-#ifdef PCI_ENABLE_IS_REFCOUNTED
pci_disable_device(pdev);
pci_disable_device(pdev);
int rc;
rc = pci_enable_device(pdev);
int rc;
rc = pci_enable_device(pdev);
rc = pci_request_regions(pdev, res_name);
rc = pci_request_regions(pdev, res_name);
comedi_pci_disable_no_regions(pdev);
comedi_pci_disable_no_regions(pdev);