Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a788a4a0 authored by Christophe Jaillet's avatar Christophe Jaillet Committed by David S. Miller
Browse files

fsl/fman: fix error handling



This is likely that checking 'fman->fifo_offset' instead of
'fman->cam_offset' is expected here.

Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c086e709
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2036,7 +2036,7 @@ static int fman_init(struct fman *fman)
	/* allocate MURAM for FIFO according to total size */
	fman->fifo_offset = fman_muram_alloc(fman->muram,
					     fman->state->total_fifo_size);
	if (IS_ERR_VALUE(fman->cam_offset)) {
	if (IS_ERR_VALUE(fman->fifo_offset)) {
		free_init_resources(fman);
		dev_err(fman->dev, "%s: MURAM alloc for BMI FIFO failed\n",
			__func__);