mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
board/linkstation/ide.c: Fix GCC 4.6 build warnings
Fix: ide.c: In function 'ide_preinit': ide.c:69:21: warning: array subscript is above array bounds [-Warray-bounds] ide.c:69:21: warning: array subscript is above array bounds [-Warray-bounds] ide.c:70:17: warning: array subscript is above array bounds [-Warray-bounds] Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Reviewed-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
This commit is contained in:
@ -64,6 +64,7 @@ int ide_preinit (void)
|
||||
ide_bus_offset[0] = pci_hose_bus_to_phys(&hose,
|
||||
ide_bus_offset[0] & 0xfffffffe,
|
||||
PCI_REGION_IO);
|
||||
if (CONFIG_SYS_IDE_MAXBUS > 1) {
|
||||
pci_read_config_dword(devbusfn, PCI_BASE_ADDRESS_2,
|
||||
(u32 *) &ide_bus_offset[1]);
|
||||
ide_bus_offset[1] &= 0xfffffffe;
|
||||
@ -71,6 +72,7 @@ int ide_preinit (void)
|
||||
ide_bus_offset[1] & 0xfffffffe,
|
||||
PCI_REGION_IO);
|
||||
}
|
||||
}
|
||||
|
||||
if (pci_find_device (PCI_VENDOR_ID_ITE, PCI_DEVICE_ID_ITE_8212, 0) != -1) {
|
||||
pci_write_config_byte(devbusfn, IT8212_PCI_CpuCONTROL, 0x01);
|
||||
|
Reference in New Issue
Block a user