From: Sven Wegener Date: Fri, 3 Oct 2008 22:23:47 +0000 (-0700) Subject: leds-fsg: change order of initialization and deinitialization X-Git-Tag: v2.6.27-rc9~14 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07f696c7772fb3501e9531de38333c49143a8d52;p=pandora-kernel.git 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 Acked-by: Rod Whitby Acked-by: Richard Purdie Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed