Commit 13ca3217 authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] logic error in aty128fb

Negate the expression not the register seems more sensible?
parent 0ee1eb36
......@@ -2102,7 +2102,7 @@ aty128_set_backlight_enable(int on, int level, void *data)
reg |= LVDS_BL_MOD_EN | LVDS_BLON;
if (on && level > BACKLIGHT_OFF) {
reg |= LVDS_DIGION;
if (!reg & LVDS_ON) {
if (!(reg & LVDS_ON)) {
reg &= ~LVDS_BLON;
aty_st_le32(LVDS_GEN_CNTL, reg);
(void)aty_ld_le32(LVDS_GEN_CNTL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment