Commit 0af46590 authored by Madalin Bucur's avatar Madalin Bucur

fsl/fman: fix return value checking

Signed-off-by: default avatarMadalin Bucur <madalin.bucur@nxp.com>
parent 73912d51
...@@ -618,7 +618,7 @@ struct fman { ...@@ -618,7 +618,7 @@ struct fman {
unsigned long cam_offset; unsigned long cam_offset;
size_t cam_size; size_t cam_size;
/* Fifo in MURAM */ /* Fifo in MURAM */
int fifo_offset; unsigned long fifo_offset;
size_t fifo_size; size_t fifo_size;
u32 liodn_base[64]; u32 liodn_base[64];
...@@ -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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment