Changeset 1413 for trunk/board_enable.c


Ignore:
Timestamp:
Aug 15, 2011 9:54:20 PM (22 months ago)
Author:
hailfinger
Message:

Fixup of r1397:

  • Mixing uninitialized and initialized local variables leads to confusion.
  • ft2232_spi error cases should have gotten some error handling, and that's the reason the curly braces were there.
  • Fixing typos/wording in some places would have been nice given that those places were touched anyway.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@…>
Acked-by: Stefan Tauner <stefan.tauner@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/board_enable.c

    r1411 r1413  
    861861        } 
    862862 
    863         /* First, check the ISA bridge */ 
     863        /* Check for the ISA bridge first. */ 
    864864        dev = pci_dev_find_vendorclass(0x10DE, 0x0601); 
    865865        switch (dev->device_id) { 
     
    11301130        uint32_t tmp, base; 
    11311131 
    1132         /* GPPO {0,8,27,28,30} are always available */ 
    1133         static const uint32_t nonmuxed_gpos  = 0x58000101; 
     1132        /* GPO{0,8,27,28,30} are always available. */ 
     1133        static const uint32_t nonmuxed_gpos = 0x58000101; 
    11341134 
    11351135        static const struct {unsigned int reg, mask, value; } piix4_gpo[] = { 
     
    11801180 
    11811181        if ((((1 << gpo) & nonmuxed_gpos) == 0) && 
    1182              (pci_read_word(dev, piix4_gpo[gpo].reg) 
    1183              & piix4_gpo[gpo].mask) != piix4_gpo[gpo].value) { 
    1184                 msg_perr("\nERROR: PIIX4 GPO%d not programmed for output.\n", 
    1185                          gpo); 
     1182            ((pci_read_word(dev, piix4_gpo[gpo].reg) & piix4_gpo[gpo].mask) != 
     1183             piix4_gpo[gpo].value)) { 
     1184                msg_perr("\nERROR: PIIX4 GPO%d not programmed for output.\n", gpo); 
    11861185                return -1; 
    11871186        } 
Note: See TracChangeset for help on using the changeset viewer.