X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Flinkstation%2Fide.c;h=568fdf5f2e8ce7b2c06f98ddca4c03bcb0ee0dd5;hb=8fd01b8f6b5b0d8bceec443f0a62b52afa7452a1;hp=2c89d62f61498323ad6f3e4af234ca28c00ae0bc;hpb=156feb90d200f186cdfd856d7f6f1878bb1bec1e;p=u-boot diff --git a/board/linkstation/ide.c b/board/linkstation/ide.c index 2c89d62f61..568fdf5f2e 100644 --- a/board/linkstation/ide.c +++ b/board/linkstation/ide.c @@ -54,11 +54,13 @@ int ide_preinit (void) if (devbusfn == -1) devbusfn = pci_find_device(PCI_VENDOR_ID_ITE,PCI_DEVICE_ID_ITE_8212,0); if (devbusfn != -1) { + u32 ide_bus_offset32; + status = 0; pci_read_config_dword (devbusfn, PCI_BASE_ADDRESS_0, - (u32 *) &ide_bus_offset[0]); - ide_bus_offset[0] &= 0xfffffffe; + &ide_bus_offset32); + ide_bus_offset[0] = ide_bus_offset32 & 0xfffffffe; ide_bus_offset[0] = pci_hose_bus_to_phys(&hose, ide_bus_offset[0] & 0xfffffffe, PCI_REGION_IO);