]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Fix ohci-ssb with !CONFIG_PM
authorAl Viro <viro@ftp.linux.org.uk>
Sat, 13 Oct 2007 21:29:47 +0000 (22:29 +0100)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 14 Oct 2007 01:18:30 +0000 (18:18 -0700)
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>
drivers/usb/host/ohci-ssb.c

index bc3e785d8c00838f91cdfdcf73dc6d487540edf0..fe70e72340de4e0735d40f67279a5d4ebcb6ce08 100644 (file)
@@ -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,
 };