1
linux/drivers/leds
Sven Wegener 95bf14bff5 leds-pca955x: add proper error handling and fix bogus memory handling
Check the return value of led_classdev_register and unregister all
registered devices, if registering one device fails.  Also the dynamic
memory handling is totally bogus.  You can't allocate multiple chunks via
kzalloc() and expect them to be in order later.  I wonder how this ever
worked.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
Acked-by: Nate Case <ncase@xes-inc.com>
Tested-by: Nate Case <ncase@xes-inc.com>
Acked-by: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-10-03 18:22:18 -07:00
..
Kconfig leds: Add support for Philips PCA955x I2C LED drivers 2008-07-23 09:49:56 +01:00
led-class.c
led-core.c
led-triggers.c leds: Ensure led->trigger is set earlier 2008-07-23 09:49:56 +01:00
leds-ams-delta.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
leds-atmel-pwm.c leds: fix unsigned value overflow in atmel pwm driver 2008-07-23 09:49:56 +01:00
leds-clevo-mail.c
leds-cm-x270.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
leds-cobalt-qube.c
leds-cobalt-raq.c
leds-corgi.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
leds-fsg.c leds-fsg: change order of initialization and deinitialization 2008-10-03 18:22:18 -07:00
leds-gpio.c
leds-h1940.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
leds-hp6xx.c
leds-locomo.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
leds-net48xx.c
leds-pca955x.c leds-pca955x: add proper error handling and fix bogus memory handling 2008-10-03 18:22:18 -07:00
leds-pca9532.c leds: Add pca9532 led driver 2008-07-23 09:49:56 +01:00
leds-s3c24xx.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
leds-spitz.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
leds-wrap.c
leds.h
ledtrig-default-on.c
ledtrig-heartbeat.c
ledtrig-ide-disk.c
ledtrig-timer.c
Makefile leds: Add support for Philips PCA955x I2C LED drivers 2008-07-23 09:49:56 +01:00