提交 a788a4a0 编写于 作者: C Christophe Jaillet 提交者: David S. Miller

fsl/fman: fix error handling

This is likely that checking 'fman->fifo_offset' instead of
'fman->cam_offset' is expected here.
Signed-off-by: NChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 c086e709
...@@ -2036,7 +2036,7 @@ static int fman_init(struct fman *fman) ...@@ -2036,7 +2036,7 @@ static int fman_init(struct fman *fman)
/* allocate MURAM for FIFO according to total size */ /* allocate MURAM for FIFO according to total size */
fman->fifo_offset = fman_muram_alloc(fman->muram, fman->fifo_offset = fman_muram_alloc(fman->muram,
fman->state->total_fifo_size); fman->state->total_fifo_size);
if (IS_ERR_VALUE(fman->cam_offset)) { if (IS_ERR_VALUE(fman->fifo_offset)) {
free_init_resources(fman); free_init_resources(fman);
dev_err(fman->dev, "%s: MURAM alloc for BMI FIFO failed\n", dev_err(fman->dev, "%s: MURAM alloc for BMI FIFO failed\n",
__func__); __func__);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册