Skip to content

Commit

Permalink
Fix ohci-ssb with !CONFIG_PM
Browse files Browse the repository at this point in the history
ohci_bus_{suspend,resume} exists only if we have CONFIG_PM; do the same
thing as other subdrivers...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Oct 14, 2007
1 parent d773b33 commit 4735b37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/usb/host/ohci-ssb.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,10 @@ static const struct hc_driver ssb_ohci_hc_driver = {
.hub_status_data = ohci_hub_status_data,
.hub_control = ohci_hub_control,
.hub_irq_enable = ohci_rhsc_enable,
#ifdef CONFIG_PM
.bus_suspend = ohci_bus_suspend,
.bus_resume = ohci_bus_resume,
#endif

.start_port_reset = ohci_start_port_reset,
};
Expand Down

0 comments on commit 4735b37

Please sign in to comment.