]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
leds-fsg: change order of initialization and deinitialization
authorSven Wegener <sven.wegener@stealer.net>
Fri, 3 Oct 2008 22:23:47 +0000 (15:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 4 Oct 2008 01:22:18 +0000 (18:22 -0700)
commit07f696c7772fb3501e9531de38333c49143a8d52
tree790f946dac7a7be022cc9f87cc79768fe431327f
parent7fe7b2f4ec14d6517078c5bc32b04301b468041c
leds-fsg: change order of initialization and deinitialization

On initialization, we first do the ioremap and then register the led devices.
On deinitialization, we do it in reverse order. This prevents someone calling
into the brightness_set functions with an invalid latch_address.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
Acked-by: Rod Whitby <rod@whitby.id.au>
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>
drivers/leds/leds-fsg.c