Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265035
b: refs/heads/master
c: 0cc47d5
h: refs/heads/master
i:
  265033: 9cf4889
  265031: bee3104
v: v3
  • Loading branch information
Sebastian Andrzej Siewior authored and Greg Kroah-Hartman committed Sep 26, 2011
1 parent 223af9c commit 30312b4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 552e0c4f12fef0ad1caf21d2b57ac3a2735edef3
refs/heads/master: 0cc47d547d7a482434926331265b3713381b1e60
3 changes: 2 additions & 1 deletion trunk/drivers/usb/host/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ fhci-y += fhci-mem.o fhci-tds.o fhci-sched.o

fhci-$(CONFIG_FHCI_DEBUG) += fhci-dbg.o

xhci-hcd-y := xhci.o xhci-mem.o xhci-pci.o
xhci-hcd-y := xhci.o xhci-mem.o
xhci-hcd-y += xhci-ring.o xhci-hub.o xhci-dbg.o
xhci-hcd-$(CONFIG_PCI) += xhci-pci.o

obj-$(CONFIG_USB_WHCI_HCD) += whci/

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/usb/host/xhci-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,12 +320,12 @@ static struct pci_driver xhci_pci_driver = {
#endif
};

int xhci_register_pci(void)
int __init xhci_register_pci(void)
{
return pci_register_driver(&xhci_pci_driver);
}

void xhci_unregister_pci(void)
void __exit xhci_unregister_pci(void)
{
pci_unregister_driver(&xhci_pci_driver);
}
7 changes: 1 addition & 6 deletions trunk/drivers/usb/host/xhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -4039,16 +4039,13 @@ MODULE_LICENSE("GPL");

static int __init xhci_hcd_init(void)
{
#ifdef CONFIG_PCI
int retval = 0;
int retval;

retval = xhci_register_pci();

if (retval < 0) {
printk(KERN_DEBUG "Problem registering PCI driver.");
return retval;
}
#endif
/*
* Check the compiler generated sizes of structures that must be laid
* out in specific ways for hardware access.
Expand All @@ -4073,8 +4070,6 @@ module_init(xhci_hcd_init);

static void __exit xhci_hcd_cleanup(void)
{
#ifdef CONFIG_PCI
xhci_unregister_pci();
#endif
}
module_exit(xhci_hcd_cleanup);
3 changes: 3 additions & 0 deletions trunk/drivers/usb/host/xhci.h
Original file line number Diff line number Diff line change
Expand Up @@ -1644,6 +1644,9 @@ void xhci_free_command(struct xhci_hcd *xhci,
/* xHCI PCI glue */
int xhci_register_pci(void);
void xhci_unregister_pci(void);
#else
static inline int xhci_register_pci(void) { return 0; }
static inline void xhci_unregister_pci(void) {}
#endif

/* xHCI host controller glue */
Expand Down

0 comments on commit 30312b4

Please sign in to comment.