android_kernel_motorola_sm6225/drivers/base/power
Daniel Drake dec13c1544 create /sys/.../power when CONFIG_PM is set
The CONFIG_SUSPEND changes in 2.6.23 caused a regression under certain
configuration conditions (SUSPEND=n, USB_AUTOSUSPEND=y) where all USB
device attributes in sysfs (idVendor, idProduct, ...) silently disappeared,
causing udev breakage and more.

The cause of this is that the /sys/.../power subdirectory is now only
created when CONFIG_PM_SLEEP is set, however, it should be created whenever
CONFIG_PM is set to handle the above situation.  The following patch fixes
the regression.

Signed-off-by: Daniel Drake <dsd@gentoo.org>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: stable <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2007-11-28 13:53:53 -08:00
..
main.c create /sys/.../power when CONFIG_PM is set 2007-11-28 13:53:53 -08:00
Makefile create /sys/.../power when CONFIG_PM is set 2007-11-28 13:53:53 -08:00
power.h create /sys/.../power when CONFIG_PM is set 2007-11-28 13:53:53 -08:00
shutdown.c Fix ThinkPad T42 poweroff failure introduced by by "PM: Introduce pm_power_off_prepare" 2007-07-26 12:13:06 -07:00
sysfs.c PM: Remove deprecated sysfs files 2007-07-18 15:49:49 -07:00
trace.c pm_trace displays the wrong time from the RTC 2007-10-18 14:37:19 -07:00