Commit 7a5cd761 authored by Miquel Raynal's avatar Miquel Raynal
Browse files

mtd: spinand: Use standard return values



Replace -ENOTSUPP with -EOPNOTSUPP which is as relevant in this case but
is standard.

Reviewed-by: default avatarTudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
parent d48db8ca
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1417,28 +1417,28 @@ int spinand_match_and_init(struct spinand_device *spinand,
		op = spinand_select_op_variant(spinand,
					       info->op_variants.read_cache);
		if (!op)
			return -ENOTSUPP;
			return -EOPNOTSUPP;

		spinand->op_templates.read_cache = op;

		op = spinand_select_op_variant(spinand,
					       info->op_variants.write_cache);
		if (!op)
			return -ENOTSUPP;
			return -EOPNOTSUPP;

		spinand->op_templates.write_cache = op;

		op = spinand_select_op_variant(spinand,
					       info->op_variants.update_cache);
		if (!op)
			return -ENOTSUPP;
			return -EOPNOTSUPP;

		spinand->op_templates.update_cache = op;

		return 0;
	}

	return -ENOTSUPP;
	return -EOPNOTSUPP;
}

static int spinand_detect(struct spinand_device *spinand)