You need to sign in or sign up before continuing.
提交 dea58bd1 编写于 作者: M Mingkai Hu 提交者: Kumar Gala

powerpc/mpic_msgr: fix offset error when setting mer register

Signed-off-by: NMingkai Hu <Mingkai.hu@freescale.com>
Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
上级 e0a5a6c3
...@@ -228,7 +228,7 @@ static __devinit int mpic_msgr_probe(struct platform_device *dev) ...@@ -228,7 +228,7 @@ static __devinit int mpic_msgr_probe(struct platform_device *dev)
reg_number = block_number * MPIC_MSGR_REGISTERS_PER_BLOCK + i; reg_number = block_number * MPIC_MSGR_REGISTERS_PER_BLOCK + i;
msgr->base = msgr_block_addr + i * MPIC_MSGR_STRIDE; 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->in_use = MSGR_FREE;
msgr->num = i; msgr->num = i;
raw_spin_lock_init(&msgr->lock); raw_spin_lock_init(&msgr->lock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册