dwc3-pci.c (e4da3fbfbd1de56d2367653e3823e6445e49f8a9) | dwc3-pci.c (0949e99b05736946cf0ac78e37194be0807e497e) |
---|---|
1/** 2 * dwc3-pci.c - PCI Specific glue layer 3 * 4 * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com 5 * 6 * Authors: Felipe Balbi <balbi@ti.com>, 7 * Sebastian Andrzej Siewior <bigeasy@linutronix.de> 8 * --- 104 unchanged lines hidden (view full) --- 113 114 pci_set_power_state(pci, PCI_D0); 115 pci_set_master(pci); 116 117 devid = dwc3_pci_get_device_id(glue); 118 if (devid < 0) 119 goto err2; 120 | 1/** 2 * dwc3-pci.c - PCI Specific glue layer 3 * 4 * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com 5 * 6 * Authors: Felipe Balbi <balbi@ti.com>, 7 * Sebastian Andrzej Siewior <bigeasy@linutronix.de> 8 * --- 104 unchanged lines hidden (view full) --- 113 114 pci_set_power_state(pci, PCI_D0); 115 pci_set_master(pci); 116 117 devid = dwc3_pci_get_device_id(glue); 118 if (devid < 0) 119 goto err2; 120 |
121 dwc3 = platform_device_alloc("dwc3-pci", devid); | 121 dwc3 = platform_device_alloc("dwc3", devid); |
122 if (!dwc3) { 123 dev_err(&pci->dev, "couldn't allocate dwc3 device\n"); 124 goto err3; 125 } 126 127 memset(res, 0x00, sizeof(struct resource) * ARRAY_SIZE(res)); 128 129 res[0].start = pci_resource_start(pci, 0); --- 61 unchanged lines hidden (view full) --- 191 PCI_DEVICE(PCI_VENDOR_ID_SYNOPSYS, 192 PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3), 193 }, 194 { } /* Terminating Entry */ 195}; 196MODULE_DEVICE_TABLE(pci, dwc3_pci_id_table); 197 198static struct pci_driver dwc3_pci_driver = { | 122 if (!dwc3) { 123 dev_err(&pci->dev, "couldn't allocate dwc3 device\n"); 124 goto err3; 125 } 126 127 memset(res, 0x00, sizeof(struct resource) * ARRAY_SIZE(res)); 128 129 res[0].start = pci_resource_start(pci, 0); --- 61 unchanged lines hidden (view full) --- 191 PCI_DEVICE(PCI_VENDOR_ID_SYNOPSYS, 192 PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3), 193 }, 194 { } /* Terminating Entry */ 195}; 196MODULE_DEVICE_TABLE(pci, dwc3_pci_id_table); 197 198static struct pci_driver dwc3_pci_driver = { |
199 .name = "pci-dwc3", | 199 .name = "dwc3-pci", |
200 .id_table = dwc3_pci_id_table, 201 .probe = dwc3_pci_probe, 202 .remove = __devexit_p(dwc3_pci_remove), 203}; 204 205MODULE_AUTHOR("Felipe Balbi <balbi@ti.com>"); 206MODULE_LICENSE("Dual BSD/GPL"); 207MODULE_DESCRIPTION("DesignWare USB3 PCI Glue Layer"); --- 12 unchanged lines hidden --- | 200 .id_table = dwc3_pci_id_table, 201 .probe = dwc3_pci_probe, 202 .remove = __devexit_p(dwc3_pci_remove), 203}; 204 205MODULE_AUTHOR("Felipe Balbi <balbi@ti.com>"); 206MODULE_LICENSE("Dual BSD/GPL"); 207MODULE_DESCRIPTION("DesignWare USB3 PCI Glue Layer"); --- 12 unchanged lines hidden --- |