USB: use the device lock for persist_enabled
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 8 Jan 2010 17:56:42 +0000 (12:56 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:54:08 +0000 (14:54 -0800)
commit0c4db6df915bc470f0cd32fe48287fa6eb6adfb4
tree5a6d1a782c63b0f9ef0070422babdadec48a18bd
parent0534d46848990e8eed7cd0832d745d813e827261
USB: use the device lock for persist_enabled

This patch (as1325) changes the locking for the persist_enabled flag
in struct usb_device.  Now it is protected by the device lock, along
with all its neighboring bit flags, instead of the PM lock (which is
about to vanish anyway).

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/sysfs.c