OSDN Git Service

ARM: footbridge: fix EBSA285 LEDs
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 29 Nov 2013 00:54:38 +0000 (00:54 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Dec 2013 06:36:26 +0000 (22:36 -0800)
commit87c337463a3fcc8f382caaa6b54e7547fb7ed818
treea3f371fea2c3b5ba1b03c6ea1ea27cabc77bc9e0
parentd877bdfe0c784f4b1d9e0d0ba151d0f4e6a2d09b
ARM: footbridge: fix EBSA285 LEDs

commit 67130c5464f50428aea0b4526a6729d61f9a1d53 upstream.

- The LEDs register is write-only: it can't be read-modify-written.
- The LEDs are write-1-for-off not 0.
- The check for the platform was inverted.

Fixes: cf6856d693dd ("ARM: mach-footbridge: retire custom LED code")
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mach-footbridge/ebsa285.c