* Felipe Balbi | 2011-07-27 01:23:07 [+0300]: >diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c >index da7bde8..7128306 100644 >--- a/drivers/usb/host/xhci-pci.c >+++ b/drivers/usb/host/xhci-pci.c >@@ -149,80 +153,104 @@ error: ... > > static int xhci_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) > { > >- xhci->shared_hcd = usb_create_shared_hcd(driver, &dev->dev, >- pci_name(dev), hcd); >- if (!xhci->shared_hcd) { >- retval = -ENOMEM; >- goto dealloc_usb2_hcd; >+ xhci = platform_device_alloc("xhci-pci", -1); you need some kind of IDR or something since the rich people might have two of this things in one system. >+ if (!xhci) { >+ dev_err(&dev->dev, "couldn't allocate xhci device\n"); >+ goto err2; > } Sebastian -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html