aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/core/devio.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c
index 85ec65ada123..32e5591ae7b1 100644
--- a/drivers/usb/core/devio.c
+++ b/drivers/usb/core/devio.c
@@ -402,10 +402,25 @@ static void driver_disconnect(struct usb_interface *intf)
402 destroy_async_on_interface(ps, ifnum); 402 destroy_async_on_interface(ps, ifnum);
403} 403}
404 404
405/* The following routines are merely placeholders. There is no way
406 * to inform a user task about suspend or resumes.
407 */
408static int driver_suspend(struct usb_interface *intf, pm_message_t msg)
409{
410 return 0;
411}
412
413static int driver_resume(struct usb_interface *intf)
414{
415 return 0;
416}
417
405struct usb_driver usbfs_driver = { 418struct usb_driver usbfs_driver = {
406 .name = "usbfs", 419 .name = "usbfs",
407 .probe = driver_probe, 420 .probe = driver_probe,
408 .disconnect = driver_disconnect, 421 .disconnect = driver_disconnect,
422 .suspend = driver_suspend,
423 .resume = driver_resume,
409}; 424};
410 425
411static int claimintf(struct dev_state *ps, unsigned int ifnum) 426static int claimintf(struct dev_state *ps, unsigned int ifnum)