NTSTATUS
InitLinuxWrapper(PDEVICE_OBJECT DeviceObject)
{
- NTSTATUS Status = STATUS_SUCCESS;
-
+ NTSTATUS Status;
PUSBMP_DEVICE_EXTENSION DeviceExtension = (PUSBMP_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
/* Create generic linux structure */
/* Initialize generic linux structure */
dev->irq = DeviceExtension->InterruptVector;
dev->dev_ext = (PVOID)DeviceExtension;
- dev->dev.dev_ext = (PVOID)DeviceObject;
+ dev->dev.dev_ext = DeviceObject;
dev->slot_name = ExAllocatePoolWithTag(NonPagedPool, 128, USB_UHCI_TAG); // 128 max len for slot name
+
+ /* Init wrapper */
init_wrapper(dev);
strcpy(dev->dev.name, "UnivHCI PCI-USB Controller");
/* Probe device with real id now */
uhci_pci_driver.probe(dev, uhci_pci_ids);
- return Status;
+ return STATUS_SUCCESS;
}
VOID STDCALL