kernel_optimize_test/drivers/leds
David Brownell 199fb21d52 leds: bugfixes for leds-gpio
Three bugfixes to the leds-gpio driver, plus minor whitespace tweaks:

 - Do the INIT_WORK() before registering each LED, so if its trigger
   becomes immediately active it can schedule work without oopsing..

 - Use normal registration, not platform_driver_probe(), so that
   devices appearing "late" (hotplug type) can still be bound.

 - Mark the driver remove code as "__devexit", preventing oopses
   when the underlying device is removed.

These issues came up when using this driver with some GPIO expanders
living on serial busses, which act unlike "normal" platform devices:
they can appear and vanish along with the serial bus driver.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
2007-11-05 21:54:41 +00:00
..
Kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild 2007-10-16 11:23:06 -07:00
led-class.c leds: Convert from struct class_device to struct device 2007-07-16 01:15:51 +01:00
led-core.c [PATCH] spin/rwlock init cleanups 2006-06-27 17:32:39 -07:00
led-triggers.c leds: Convert from struct class_device to struct device 2007-07-16 01:15:51 +01:00
leds-ams-delta.c Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
leds-cm-x270.c [ARM] 4576/1: CM-X270 machine support 2007-10-15 18:53:57 +01:00
leds-cobalt-qube.c leds: Update Cobalt Qube series front LED support 2007-10-11 22:24:00 +01:00
leds-cobalt-raq.c leds: Add Cobalt Raq series LEDs support 2007-10-11 22:24:00 +01:00
leds-corgi.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
leds-gpio.c leds: bugfixes for leds-gpio 2007-11-05 21:54:41 +00:00
leds-h1940.c fix file specification in comments 2007-05-09 08:58:16 +02:00
leds-ixp4xx-gpio.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
leds-locomo.c leds: Convert from struct class_device to struct device 2007-07-16 01:15:51 +01:00
leds-net48xx.c [PATCH] Make net48xx-led use scx200_gpio_ops 2006-09-29 09:18:06 -07:00
leds-s3c24xx.c fix typo "sort" -> "short" 2007-10-20 01:55:58 +02:00
leds-spitz.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
leds-tosa.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
leds-wrap.c [PATCH] PCEngines WRAP LED Support 2006-12-07 08:39:36 -08:00
leds.h leds: Convert from struct class_device to struct device 2007-07-16 01:15:51 +01:00
ledtrig-heartbeat.c [PATCH] LED: add LED heartbeat trigger 2006-06-25 10:01:23 -07:00
ledtrig-ide-disk.c [PATCH] severing module.h->sched.h 2006-12-04 02:00:22 -05:00
ledtrig-timer.c leds: Convert from struct class_device to struct device 2007-07-16 01:15:51 +01:00
Makefile [ARM] 4576/1: CM-X270 machine support 2007-10-15 18:53:57 +01:00