ssb: trivial: use u8 for chip_rev (it's mask is 0xF)
authorRafał Miłecki <zajec5@gmail.com>
Fri, 1 Apr 2011 10:06:48 +0000 (12:06 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 4 Apr 2011 20:20:06 +0000 (16:20 -0400)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/ssb/scan.c
include/linux/ssb/ssb.h

index 29884c00c4d53a4da03150e79987e6ed66fc6331..7dca719fbcfb144da2a81bcfa7a32996bbd32090 100644 (file)
@@ -307,7 +307,7 @@ int ssb_bus_scan(struct ssb_bus *bus,
        } else {
                if (bus->bustype == SSB_BUSTYPE_PCI) {
                        bus->chip_id = pcidev_to_chipid(bus->host_pci);
-                       pci_read_config_word(bus->host_pci, PCI_REVISION_ID,
+                       pci_read_config_byte(bus->host_pci, PCI_REVISION_ID,
                                             &bus->chip_rev);
                        bus->chip_package = 0;
                } else {
index 9659eff52ca2d146fa18cf85e97eb3bc4e9b150e..7e99b348834c42a5c262d1a05e9dcb8ba4b7c970 100644 (file)
@@ -308,7 +308,7 @@ struct ssb_bus {
 
        /* ID information about the Chip. */
        u16 chip_id;
-       u16 chip_rev;
+       u8 chip_rev;
        u16 sprom_offset;
        u16 sprom_size;         /* number of words in sprom */
        u8 chip_package;