Skip to content

Commit

Permalink
powerpc/mpic_msgr: fix offset error when setting mer register
Browse files Browse the repository at this point in the history
Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
  • Loading branch information
Mingkai Hu authored and Kumar Gala committed Apr 19, 2012
1 parent e0a5a6c commit dea58bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/sysdev/mpic_msgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ static __devinit int mpic_msgr_probe(struct platform_device *dev)

reg_number = block_number * MPIC_MSGR_REGISTERS_PER_BLOCK + i;
msgr->base = msgr_block_addr + i * MPIC_MSGR_STRIDE;
msgr->mer = msgr->base + MPIC_MSGR_MER_OFFSET;
msgr->mer = (u32 *)((u8 *)msgr->base + MPIC_MSGR_MER_OFFSET);
msgr->in_use = MSGR_FREE;
msgr->num = i;
raw_spin_lock_init(&msgr->lock);
Expand Down

0 comments on commit dea58bd

Please sign in to comment.