powerpc/pci: Don't use bitfield for force_32bit_msi
authorAnton Blanchard <anton@samba.org>
Tue, 6 Aug 2013 16:01:25 +0000 (02:01 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 14 Aug 2013 01:50:25 +0000 (11:50 +1000)
Fix a sparse warning about force_32bit_msi being a one bit bitfield.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/pci-bridge.h
arch/powerpc/kernel/pci_64.c

index 32d0d2018faf84afe15814f13cb7f1fe4933fa4e..4ca90a39d6d01af63da46c73d19b816b0979e538 100644 (file)
@@ -159,7 +159,7 @@ struct pci_dn {
 
        int     pci_ext_config_space;   /* for pci devices */
 
-       int     force_32bit_msi:1;
+       bool    force_32bit_msi;
 
        struct  pci_dev *pcidev;        /* back-pointer to the pci device */
 #ifdef CONFIG_EEH
index cdf5aa1411bf342933836ce445f874a7276c2297..a9e311f7a9dd58026e1fbd108ae1239415aa6153 100644 (file)
@@ -272,7 +272,7 @@ static void quirk_radeon_32bit_msi(struct pci_dev *dev)
        struct pci_dn *pdn = pci_get_pdn(dev);
 
        if (pdn)
-               pdn->force_32bit_msi = 1;
+               pdn->force_32bit_msi = true;
 }
 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x68f2, quirk_radeon_32bit_msi);
 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0xaa68, quirk_radeon_32bit_msi);