usb: set ep_dev async suspend should be later than device_initialize
authorPeter Chen <peter.chen@freescale.com>
Wed, 5 Jan 2011 06:50:54 +0000 (14:50 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 23 Jan 2011 02:36:42 +0000 (18:36 -0800)
commit956227120f2e8eed8ca459879d7eafee78591cc1
tree724880137a7e76086d5c2c23a66ff8d67670a989
parent20831ad23978d0543b0b23128621b6d8ee7757f1
usb: set ep_dev async suspend should be later than device_initialize

The dev->power.async_suspend can only be set at the condition of
dev->power.status is DPM_ON. The dev->power.status will be initialized
as DPM_ON at device_initialize.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/endpoint.c