Commit cf3bbe67 authored by YueHaibing's avatar YueHaibing Committed by Miquel Raynal

mtd: rawnand: ingenic: Make jz4725b_ooblayout_ops static

Fix sparse warning:

drivers/mtd/nand/raw/ingenic/ingenic_nand.c:140:32: warning:
 symbol 'jz4725b_ooblayout_ops' was not declared. Should it be static?
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
parent 09e030d9
...@@ -137,7 +137,7 @@ static int jz4725b_ooblayout_free(struct mtd_info *mtd, int section, ...@@ -137,7 +137,7 @@ static int jz4725b_ooblayout_free(struct mtd_info *mtd, int section,
return 0; return 0;
} }
const struct mtd_ooblayout_ops jz4725b_ooblayout_ops = { static const struct mtd_ooblayout_ops jz4725b_ooblayout_ops = {
.ecc = jz4725b_ooblayout_ecc, .ecc = jz4725b_ooblayout_ecc,
.free = jz4725b_ooblayout_free, .free = jz4725b_ooblayout_free,
}; };
......
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