ndis(4): Use the device_t for getting the softc.
authorSascha Wildner <saw@online.de>
Tue, 20 Mar 2012 12:25:43 +0000 (13:25 +0100)
committerSascha Wildner <saw@online.de>
Tue, 20 Mar 2012 12:25:43 +0000 (13:25 +0100)
sys/emulation/ndis/kern_ndis.c

index 1faa122..8a45b39 100644 (file)
@@ -1135,7 +1135,7 @@ ndis_pnpevent_nic(void *arg, int type)
        ndis_pnpevent_handler   pnpeventfunc;
 
        dev = arg;
-       sc = device_get_softc(arg);
+       sc = device_get_softc(dev);
        NDIS_LOCK(sc);
        adapter = sc->ndis_block->nmb_miniportadapterctx;
        pnpeventfunc = sc->ndis_chars->nmc_pnpevent_handler;