Skip to content

Commit

Permalink
fbdev: sh_mobile_meram: Make current_reg field store the current reg set
Browse files Browse the repository at this point in the history
Make sure current_reg == 0/1 always mean register set A/B through all
the code.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
  • Loading branch information
Laurent Pinchart committed Mar 12, 2012
1 parent 0543283 commit eb4f230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/sh_mobile_meram.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,8 @@ static inline void meram_set_next_addr(struct sh_mobile_meram_priv *priv,
{
unsigned long target;

target = (cfg->current_reg) ? MExxSARA : MExxSARB;
cfg->current_reg ^= 1;
target = cfg->current_reg ? MExxSARB : MExxSARA;

/* set the next address to fetch */
meram_write_icb(priv->base, cfg->icb[0].cache_icb, target,
Expand Down

0 comments on commit eb4f230

Please sign in to comment.