Browse Source

USB: usb-hub-driver-improve-use-of-ifdef fix

Fix CONFIG_PM=n build.

Cc: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Andrew Morton 19 years ago
parent
commit
511366da53
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/usb/core/hub.c

+ 2 - 0
drivers/usb/core/hub.c

@@ -1895,6 +1895,8 @@ static inline int remote_wakeup(struct usb_device *udev)
 	return 0;
 }
 
+#define hub_suspend NULL
+#define hub_resume NULL
 #endif
 
 void usb_suspend_root_hub(struct usb_device *hdev)