Skip to content

Commit

Permalink
PCI: get rid of pci_dev::{vendor,device}_compatible fields
Browse files Browse the repository at this point in the history
The vendor_compatible and device_compatible fields in struct pci_dev aren't
used anywhere, and are somewhat pointless.  Assuming that these are
historical artifacts, remove them.

Signed-off-by: Lennert Buytenhek <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
buytenh authored and gregkh committed Feb 1, 2008
1 parent 74e27e4 commit 10d7425
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions include/linux/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ enum pci_mmap_state {
#define PCI_DMA_FROMDEVICE 2
#define PCI_DMA_NONE 3

#define DEVICE_COUNT_COMPATIBLE 4
#define DEVICE_COUNT_RESOURCE 12

typedef int __bitwise pci_power_t;
Expand Down Expand Up @@ -167,10 +166,6 @@ struct pci_dev {
pci_channel_state_t error_state; /* current connectivity state */
struct device dev; /* Generic device interface */

/* device is compatible with these IDs */
unsigned short vendor_compatible[DEVICE_COUNT_COMPATIBLE];
unsigned short device_compatible[DEVICE_COUNT_COMPATIBLE];

int cfg_size; /* Size of configuration space */

/*
Expand Down

0 comments on commit 10d7425

Please sign in to comment.