USB: use the no_callbacks flag for interfaces
authorMing Lei <tom.leiming@gmail.com>
Mon, 15 Nov 2010 20:56:54 +0000 (15:56 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Nov 2010 22:02:00 +0000 (14:02 -0800)
commit63defa73c8c1193c1273474440c30d34c2524597
tree3d7cbe9351e507ca2e55a874e496398979602ec1
parentf646cf94520e22cb11eb5d2e9a35b33bfe4bea1b
USB: use the no_callbacks flag for interfaces

Call pm_runtime_no_callbacks to set no_callbacks flag for USB
interfaces.  Since interfaces cannot be power-managed separately from
their parent devices, there's no reason for the runtime-PM core to
invoke any callbacks for them.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Reviewed-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/driver.c
drivers/usb/core/message.c