xhci-pci.c (e1cd972741f537828307640c9e55f7b595e9ba1e) | xhci-pci.c (29e409f0f7613f9fd2235e41f0fa33e48e94544e) |
---|---|
1/* 2 * xHCI host controller driver PCI Bus Glue. 3 * 4 * Copyright (C) 2008 Intel Corp. 5 * 6 * Author: Sarah Sharp 7 * Some code borrowed from the Linux EHCI driver. 8 * --- 341 unchanged lines hidden (view full) --- 350 .shutdown = usb_hcd_pci_shutdown, 351#ifdef CONFIG_PM 352 .driver = { 353 .pm = &usb_hcd_pci_pm_ops 354 }, 355#endif 356}; 357 | 1/* 2 * xHCI host controller driver PCI Bus Glue. 3 * 4 * Copyright (C) 2008 Intel Corp. 5 * 6 * Author: Sarah Sharp 7 * Some code borrowed from the Linux EHCI driver. 8 * --- 341 unchanged lines hidden (view full) --- 350 .shutdown = usb_hcd_pci_shutdown, 351#ifdef CONFIG_PM 352 .driver = { 353 .pm = &usb_hcd_pci_pm_ops 354 }, 355#endif 356}; 357 |
358int __init xhci_register_pci(void) | 358static int __init xhci_pci_init(void) |
359{ 360 xhci_init_driver(&xhci_pci_hc_driver, xhci_pci_setup); 361#ifdef CONFIG_PM 362 xhci_pci_hc_driver.pci_suspend = xhci_pci_suspend; 363 xhci_pci_hc_driver.pci_resume = xhci_pci_resume; 364#endif 365 return pci_register_driver(&xhci_pci_driver); 366} | 359{ 360 xhci_init_driver(&xhci_pci_hc_driver, xhci_pci_setup); 361#ifdef CONFIG_PM 362 xhci_pci_hc_driver.pci_suspend = xhci_pci_suspend; 363 xhci_pci_hc_driver.pci_resume = xhci_pci_resume; 364#endif 365 return pci_register_driver(&xhci_pci_driver); 366} |
367module_init(xhci_pci_init); |
|
367 | 368 |
368void xhci_unregister_pci(void) | 369static void __exit xhci_pci_exit(void) |
369{ 370 pci_unregister_driver(&xhci_pci_driver); 371} | 370{ 371 pci_unregister_driver(&xhci_pci_driver); 372} |
373module_exit(xhci_pci_exit); 374 375MODULE_DESCRIPTION("xHCI PCI Host Controller Driver"); 376MODULE_LICENSE("GPL"); |
|