From 85633f62b5693e6c7b56d1b3db83bd5e56776ae3 Mon Sep 17 00:00:00 2001 From: Stanislav Fomichev Date: Sun, 10 Apr 2011 22:34:20 +0400 Subject: [PATCH] brcm80211: use native PCI header defines Signed-off-by: Stanislav Fomichev Signed-off-by: Greg Kroah-Hartman --- drivers/staging/brcm80211/include/pcicfg.h | 5 ----- drivers/staging/brcm80211/util/nicpci.c | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/staging/brcm80211/include/pcicfg.h b/drivers/staging/brcm80211/include/pcicfg.h index 4a519f2852d5..dff8ae55c7e1 100644 --- a/drivers/staging/brcm80211/include/pcicfg.h +++ b/drivers/staging/brcm80211/include/pcicfg.h @@ -56,11 +56,6 @@ typedef struct _pci_config_regs { /* Classes and subclasses */ -/* Header types */ -typedef enum { - PCI_HEADER_NORMAL -} pci_header_types; - /* Overlay for a PCI-to-PCI bridge */ #define PPB_RSVDA_MAX 2 diff --git a/drivers/staging/brcm80211/util/nicpci.c b/drivers/staging/brcm80211/util/nicpci.c index 7d441c359631..9be55ea96b12 100644 --- a/drivers/staging/brcm80211/util/nicpci.c +++ b/drivers/staging/brcm80211/util/nicpci.c @@ -130,7 +130,7 @@ pcicore_find_pci_capability(void *dev, u8 req_cap_id, /* check for Header type 0 */ pci_read_config_byte(dev, PCI_HEADER_TYPE, &byte_val); - if ((byte_val & 0x7f) != PCI_HEADER_NORMAL) + if ((byte_val & 0x7f) != PCI_HEADER_TYPE_NORMAL) goto end; /* check if the capability pointer field exists */ -- 2.30.2