Commit 85633f62 authored by Stanislav Fomichev's avatar Stanislav Fomichev Committed by Greg Kroah-Hartman

brcm80211: use native PCI header defines

Signed-off-by: default avatarStanislav Fomichev <kernel@fomichev.me>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent d8394285
...@@ -56,11 +56,6 @@ typedef struct _pci_config_regs { ...@@ -56,11 +56,6 @@ typedef struct _pci_config_regs {
/* Classes and subclasses */ /* Classes and subclasses */
/* Header types */
typedef enum {
PCI_HEADER_NORMAL
} pci_header_types;
/* Overlay for a PCI-to-PCI bridge */ /* Overlay for a PCI-to-PCI bridge */
#define PPB_RSVDA_MAX 2 #define PPB_RSVDA_MAX 2
......
...@@ -130,7 +130,7 @@ pcicore_find_pci_capability(void *dev, u8 req_cap_id, ...@@ -130,7 +130,7 @@ pcicore_find_pci_capability(void *dev, u8 req_cap_id,
/* check for Header type 0 */ /* check for Header type 0 */
pci_read_config_byte(dev, PCI_HEADER_TYPE, &byte_val); 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; goto end;
/* check if the capability pointer field exists */ /* check if the capability pointer field exists */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment