Skip to content

Commit

Permalink
ARM: sa11x0: assabet: clean up IrDA power setting
Browse files Browse the repository at this point in the history
Minor clean up to the IrDA power setting support.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King committed Dec 12, 2013
1 parent c885775 commit 22564bd
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions arch/arm/mach-sa1100/assabet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 22564bd

Please sign in to comment.