]> git.baikalelectronics.ru Git - kernel.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)
commitad6144d89e0e3b8bdade1d78dd147d06d779eefa
tree790f946dac7a7be022cc9f87cc79768fe431327f
parent4c5eb238b647e9b23058611ca753ef2d8a9b5777
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