Deleted Added
full compact
37c37
< __FBSDID("$FreeBSD: head/sys/dev/advansys/adw_pci.c 241588 2012-10-15 15:26:00Z jhb $");
---
> __FBSDID("$FreeBSD: head/sys/dev/advansys/adw_pci.c 254263 2013-08-12 23:30:01Z scottl $");
202c202
< u_int32_t command;
---
> u_int16_t command;
209d208
< command = pci_read_config(dev, PCIR_COMMAND, /*bytes*/1);
217,222c216,218
< if ((command & PCIM_CMD_MEMEN) != 0) {
< regs_type = SYS_RES_MEMORY;
< regs_id = ADW_PCI_MEMBASE;
< regs = bus_alloc_resource_any(dev, regs_type,
< &regs_id, RF_ACTIVE);
< }
---
> regs_type = SYS_RES_MEMORY;
> regs_id = ADW_PCI_MEMBASE;
> regs = bus_alloc_resource_any(dev, regs_type, &regs_id, RF_ACTIVE);
224c220
< if (regs == NULL && (command & PCIM_CMD_PORTEN) != 0) {
---
> if (regs == NULL) {
298a295
> command = pci_read_config(dev, PCIR_COMMAND, /*bytes*/2);