aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci-pci.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2011-09-23 17:20:02 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-09-26 18:51:14 -0400
commit0cc47d547d7a482434926331265b3713381b1e60 (patch)
tree77530e02def9808bf064bdbe48e9fc339f4b832e /drivers/usb/host/xhci-pci.c
parent552e0c4f12fef0ad1caf21d2b57ac3a2735edef3 (diff)
usb/xhci: remove CONFIG_PCI in xhci.c's probe function
This removes the need of ifdefs within the init function and with it the headache about the correct clean without bus X but with bus/platform Y & Z. xhci-pci is only compiled if CONFIG_PCI is selected which can be de-selected now without trouble. For now the result is kinda useless because we have no other glue code. However, since nobody is using USB_ARCH_HAS_XHCI then it should not be an issue :) Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/xhci-pci.c')
-rw-r--r--drivers/usb/host/xhci-pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c
index e2c82d1249c2..9f51f88cc0f5 100644
--- a/drivers/usb/host/xhci-pci.c
+++ b/drivers/usb/host/xhci-pci.c
@@ -320,12 +320,12 @@ static struct pci_driver xhci_pci_driver = {
320#endif 320#endif
321}; 321};
322 322
323int xhci_register_pci(void) 323int __init xhci_register_pci(void)
324{ 324{
325 return pci_register_driver(&xhci_pci_driver); 325 return pci_register_driver(&xhci_pci_driver);
326} 326}
327 327
328void xhci_unregister_pci(void) 328void __exit xhci_unregister_pci(void)
329{ 329{
330 pci_unregister_driver(&xhci_pci_driver); 330 pci_unregister_driver(&xhci_pci_driver);
331} 331}