leds: add possibility to remove leds classdevs during suspend/resume
authorRafael J. Wysocki <rjw@sisk.pl>
Tue, 5 Feb 2008 06:30:14 +0000 (22:30 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 5 Feb 2008 17:44:23 +0000 (09:44 -0800)
commitfa23f5cce8cda2095013afc837ccf74b352f9f7b
treebdb22c6966b9e60eb90c97086f3ceed453223f97
parenta41e3dc4060cca2599afa14fbd4c745763746ba8
leds: add possibility to remove leds classdevs during suspend/resume

Make it possible to unregister a led classdev object in a safe way during a
suspend/resume cycle.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Michael Buesch <mb@bu3sch.de>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: "John W. Linville" <linville@tuxdriver.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Len Brown <lenb@kernel.org>
Cc: Greg KH <greg@kroah.com>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/leds/led-class.c
include/linux/leds.h