brcm80211: use native PCI header defines
authorStanislav Fomichev <kernel@fomichev.me>
Sun, 10 Apr 2011 18:34:20 +0000 (22:34 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 25 Apr 2011 23:29:41 +0000 (16:29 -0700)
Signed-off-by: Stanislav Fomichev <kernel@fomichev.me>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/include/pcicfg.h
drivers/staging/brcm80211/util/nicpci.c

index 4a519f2852d589d7e47404406f7a1335cc825c85..dff8ae55c7e1c777499930918889bb603eefb65f 100644 (file)
@@ -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
index 7d441c3596319953354c0a44a0c658736afed07b..9be55ea96b12c4e85b377940910ca209cb1671dd 100644 (file)
@@ -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 */