usbnet: fix usb_autopm_get_interface failure(v1)
authorMing Lei <tom.leiming@gmail.com>
Mon, 1 Nov 2010 14:11:54 +0000 (07:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Nov 2010 14:11:54 +0000 (07:11 -0700)
commitb0786b430c982dffbb44d8030e6b6088671ce745
tree033192c4b031a0b3a800c5e340ddeb7387ecff50
parent6f9b901823aafd14a84ae27f61ff28bafed01260
usbnet: fix usb_autopm_get_interface failure(v1)

Since usbnet already took usb runtime pm, we have to
enable runtime pm for usb interface of usbnet, otherwise
usb_autopm_get_interface may return failure and cause
'ifconfig usb0 up' failed if USB_SUSPEND(RUNTIME_PM) is
enabled.

Cc: David Brownell <dbrownell@users.sourceforge.net>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Ben Hutchings <ben@decadent.org.uk>
Cc: Joe Perches <joe@perches.com>
Cc: Oliver Neukum <oliver@neukum.org>
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/usbnet.c