Replace a void* by PDEVICE_OBJECT and fix its usage
[reactos.git] / reactos / drivers / usb / miniport / usbohci / ohci.c
index 0c7f281..2da6b0d 100644 (file)
@@ -21,7 +21,7 @@ InitLinuxWrapper(PDEVICE_OBJECT DeviceObject)
        /* Initialize generic linux structure */\r
        dev->irq = DeviceExtension->InterruptVector;\r
        dev->dev_ext = (PVOID)DeviceExtension;\r
-       dev->dev.dev_ext = (PVOID)DeviceExtension;\r
+       dev->dev.dev_ext = (PVOID)DeviceObject;\r
        dev->slot_name = ExAllocatePoolWithTag(NonPagedPool, 128, USB_OHCI_TAG); // 128 max len for slot name\r
 \r
        // Init wrapper\r