summaryrefslogtreecommitdiffstats
path: root/drivers/usb/core
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2006-08-20 18:58:42 +0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-09-27 11:58:55 -0700
commit42d8a2d22bbaed80f1ade65a08e4e1097a111d4b (patch)
treec15bc9a106a114fdda9a3f5557641dd06e786cbb /drivers/usb/core
parent088dc270e1da03744d977cbd9edd4311af142348 (diff)
downloadop-kernel-dev-42d8a2d22bbaed80f1ade65a08e4e1097a111d4b.zip
op-kernel-dev-42d8a2d22bbaed80f1ade65a08e4e1097a111d4b.tar.gz
USB: Turn usb_resume_both() into static inline
drivers/usb/core/hub.c: In function `hub_events': drivers/usb/core/hub.c:2591: warning: statement with no effect Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r--drivers/usb/core/usb.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/usb/core/usb.h b/drivers/usb/core/usb.h
index 67da6d0..5162cb3 100644
--- a/drivers/usb/core/usb.h
+++ b/drivers/usb/core/usb.h
@@ -40,7 +40,10 @@ extern int usb_port_resume(struct usb_device *dev);
#else
#define usb_suspend_both(udev, msg) 0
-#define usb_resume_both(udev) 0
+static inline int usb_resume_both(struct usb_device *udev)
+{
+ return 0;
+}
#define usb_port_suspend(dev) 0
#define usb_port_resume(dev) 0
OpenPOWER on IntegriCloud