]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[POWERPC] The pci_dn class_code is only used by EEH
authorStephen Rothwell <sfr@canb.auug.org.au>
Fri, 21 Dec 2007 04:48:18 +0000 (15:48 +1100)
committerPaul Mackerras <paulus@samba.org>
Thu, 17 Jan 2008 03:57:00 +0000 (14:57 +1100)
... so move it into the #ifdef CONFIG_EEH section.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/pci-bridge.h

index 9b16d3b171699f41c00af244bb4034fb873f3b06..07cdb5b786f06b1bea47a86e6ab94d0c394be24c 100644 (file)
@@ -167,7 +167,6 @@ struct pci_dn {
        int     busno;                  /* pci bus number */
        int     bussubno;               /* pci subordinate bus number */
        int     devfn;                  /* pci device and function number */
-       int     class_code;             /* pci device class */
 
        struct  pci_controller *phb;    /* for pci devices */
        struct  iommu_table *iommu_table;       /* for phb's or bridges */
@@ -177,6 +176,7 @@ struct pci_dn {
        int     pci_ext_config_space;   /* for pci devices */
 
 #ifdef CONFIG_EEH
+       int     class_code;             /* pci device class */
        int     eeh_mode;               /* See eeh.h for possible EEH_MODEs */
        int     eeh_config_addr;
        int     eeh_pe_config_addr; /* new-style partition endpoint address */