projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3362094
)
mtd: nand: nand_base: Convert EINVAL into ENOTSUPP
author
Mylène Josserand
<
[email protected]
>
Fri, 13 Jul 2018 16:10:23 +0000
(18:10 +0200)
committer
Jagan Teki
<
[email protected]
>
Tue, 31 Jul 2018 15:15:42 +0000
(20:45 +0530)
Convert the EINVAL error into ENOTSUPP when the GET/SET_FEATURES
is not supported.
Signed-off-by: Mylène Josserand <
[email protected]
>
Acked-by: Jagan Teki <
[email protected]
>
drivers/mtd/nand/nand_base.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/nand_base.c
b/drivers/mtd/nand/nand_base.c
index 64e4621aaaf1324667763fb6fa67001959a63125..9094f857c1e88d44e19b3573dc44f7eb372eb7ba 100644
(file)
--- a/
drivers/mtd/nand/nand_base.c
+++ b/
drivers/mtd/nand/nand_base.c
@@
-3041,7
+3041,7
@@
static int nand_onfi_set_features(struct mtd_info *mtd, struct nand_chip *chip,
if (!chip->onfi_version ||
!(le16_to_cpu(chip->onfi_params.opt_cmd)
& ONFI_OPT_CMD_SET_GET_FEATURES))
- return -E
INVAL
;
+ return -E
NOTSUPP
;
#endif
chip->cmdfunc(mtd, NAND_CMD_SET_FEATURES, addr, -1);
@@
-3070,7
+3070,7
@@
static int nand_onfi_get_features(struct mtd_info *mtd, struct nand_chip *chip,
if (!chip->onfi_version ||
!(le16_to_cpu(chip->onfi_params.opt_cmd)
& ONFI_OPT_CMD_SET_GET_FEATURES))
- return -E
INVAL
;
+ return -E
NOTSUPP
;
#endif
chip->cmdfunc(mtd, NAND_CMD_GET_FEATURES, addr, -1);