Commit 22564bde authored by Russell King's avatar Russell King

ARM: sa11x0: assabet: clean up IrDA power setting

Minor clean up to the IrDA power setting support.
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent c8857758
......@@ -286,12 +286,9 @@ static int assabet_irda_set_power(struct device *dev, unsigned int state)
0
};
if (state < 4) {
state = bcr_state[state];
ASSABET_BCR_clear(state ^ (ASSABET_BCR_IRDA_MD1|
ASSABET_BCR_IRDA_MD0));
ASSABET_BCR_set(state);
}
if (state < 4)
ASSABET_BCR_frob(ASSABET_BCR_IRDA_MD1 | ASSABET_BCR_IRDA_MD0,
bcr_state[state]);
return 0;
}
......
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