mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
mtd: spinand: Use standard return values
Replace -ENOTSUPP with -EOPNOTSUPP which is as relevant in this case but is standard. Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user