Skip to content

Commit

Permalink
brcm80211: use native PCI header defines
Browse files Browse the repository at this point in the history
Signed-off-by: Stanislav Fomichev <kernel@fomichev.me>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Stanislav Fomichev authored and Greg Kroah-Hartman committed Apr 25, 2011
1 parent d839428 commit 85633f6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions drivers/staging/brcm80211/include/pcicfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/brcm80211/util/nicpci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 85633f6

Please sign in to comment.