the beos compiler is pretty pedantic and wont let you use c99 style variable decls.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20157 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -170,9 +170,11 @@ controller_probe(device_node_handle parent)
|
||||
|
||||
res = pci->find_pci_capability(device, PCI_cap_id_sata, &cap_ofs);
|
||||
if (res == B_OK) {
|
||||
uint32 satacr0;
|
||||
uint32 satacr1;
|
||||
TRACE("PCI SATA capability found at offset 0x%x\n", cap_ofs);
|
||||
uint32 satacr0 = pci->read_pci_config(device, cap_ofs, 4);
|
||||
uint32 satacr1 = pci->read_pci_config(device, cap_ofs + 4, 4);
|
||||
satacr0 = pci->read_pci_config(device, cap_ofs, 4);
|
||||
satacr1 = pci->read_pci_config(device, cap_ofs + 4, 4);
|
||||
TRACE("satacr0 = 0x%08x, satacr1 = 0x%08x\n", satacr0, satacr1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user