diff --git a/sys/dev/vmd/vmd.c b/sys/dev/vmd/vmd.c index c82bfd978bc..2cc6f45bed9 100644 --- a/sys/dev/vmd/vmd.c +++ b/sys/dev/vmd/vmd.c @@ -316,7 +316,6 @@ vmd_attach(device_t dev) goto fail; } - sc->vmd_btag = rman_get_bustag(sc->vmd_regs_resource[0]); sc->vmd_bhandle = rman_get_bushandle(sc->vmd_regs_resource[0]); @@ -366,7 +365,6 @@ vmd_attach(device_t dev) min_count - 1); } - /* * Add the initial resource to the rman. */ @@ -424,7 +422,6 @@ vmd_attach(device_t dev) goto fail; } - return (0); fail: @@ -518,7 +515,6 @@ vmd_pcib_route_interrupt(device_t pcib, device_t dev, int pin) return (pcib_route_interrupt(pcib, dev, pin)); } - static int vmd_pcib_alloc_msi(device_t pcib, device_t dev, int count, int maxcount, int *irqs) diff --git a/sys/dev/vmd/vmd_bus.c b/sys/dev/vmd/vmd_bus.c index 7ec65cc7397..74a6faa812b 100644 --- a/sys/dev/vmd/vmd_bus.c +++ b/sys/dev/vmd/vmd_bus.c @@ -95,7 +95,7 @@ vmd_bus_attach(device_t dev) end = rman_get_end(sc->vmd_io_resource); resource_list_add_next(&dinfo->resources, SYS_RES_IOPORT, start, end, end - start + 1); - + bus_generic_attach(dev); return (0);