Replace a void* by PDEVICE_OBJECT and fix its usage
[reactos.git] / reactos / drivers / usb / miniport / usbuhci / uhci.c
index 9c3c3d7..bf07f78 100644 (file)
@@ -26,7 +26,7 @@ InitLinuxWrapper(PDEVICE_OBJECT DeviceObject)
        /* Initialize generic linux structure */
        dev->irq = DeviceExtension->InterruptVector;
        dev->dev_ext = (PVOID)DeviceExtension;
-       dev->dev.dev_ext = (PVOID)DeviceExtension;
+       dev->dev.dev_ext = (PVOID)DeviceObject;
        dev->slot_name = ExAllocatePoolWithTag(NonPagedPool, 128, USB_UHCI_TAG); // 128 max len for slot name
        init_wrapper(dev);