Author: sduplichan
Date: Tue Oct 26 07:26:01 2010
New Revision: 5988
URL: https://tracker.coreboot.org/trac/coreboot/changeset/5988

Log:
When gcc 4.5.0 is used, compiling mcp55_early_setup_car.c fails. This change 
eliminates the compiler warning that causes the build to fail.

Signed-off-by: Scott Duplichan <[email protected]>
Acked-by: Peter Stuge <[email protected]>

Modified:
   trunk/src/southbridge/nvidia/mcp55/mcp55_early_setup_car.c

Modified: trunk/src/southbridge/nvidia/mcp55/mcp55_early_setup_car.c
==============================================================================
--- trunk/src/southbridge/nvidia/mcp55/mcp55_early_setup_car.c  Mon Oct 25 
17:32:07 2010        (r5987)
+++ trunk/src/southbridge/nvidia/mcp55/mcp55_early_setup_car.c  Tue Oct 26 
07:26:01 2010        (r5988)
@@ -363,9 +363,9 @@
 static int mcp55_early_setup_x(void)
 {
        /*find out how many mcp55 we have */
-       unsigned busn[HT_CHAIN_NUM_MAX];
-       unsigned devn[HT_CHAIN_NUM_MAX];
-       unsigned io_base[HT_CHAIN_NUM_MAX];
+       unsigned busn[HT_CHAIN_NUM_MAX] = {0};
+       unsigned devn[HT_CHAIN_NUM_MAX] = {0};
+       unsigned io_base[HT_CHAIN_NUM_MAX] = {0};
        /*
                FIXME: May have problem if there is different MCP55 HTX card 
with different PCI_E lane allocation
                Need to use same trick about pci1234 to verify node/link 
connection

-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to