diff --git a/sys/dev/cardbus/cardbus.c b/sys/dev/cardbus/cardbus.c index be90c8889af4..da5605fe8091 100644 --- a/sys/dev/cardbus/cardbus.c +++ b/sys/dev/cardbus/cardbus.c @@ -360,8 +360,8 @@ cardbus_alloc_resources(device_t cbdev, device_t child) bus_release_resource(cbdev, SYS_RES_IRQ, rid, res); resource_list_add(&dinfo->pci.resources, SYS_RES_IRQ, rid, start, end, 1); - dinfo->pci.cfg.intline = rman_get_start(res); - pci_write_config(child, PCIR_INTLINE, rman_get_start(res), 1); + dinfo->pci.cfg.intline = start; + pci_write_config(child, PCIR_INTLINE, start, 1); free(barlist, M_DEVBUF); return (0);