diff options
author | Tom Rini <trini@konsulko.com> | 2021-10-23 10:49:28 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-10-23 10:49:28 -0400 |
commit | 355d1e24f6143c4839be3c015c191421c4e9449c (patch) | |
tree | ff68e868d404d117f3f9599740f83fd73c99c306 /cmd | |
parent | f055f2e5a2038002519e5b9affbf259345f4ade9 (diff) | |
parent | b9cfd8b0911209e2ebec887e497510ee42f9e788 (diff) | |
download | u-boot-355d1e24f6143c4839be3c015c191421c4e9449c.zip u-boot-355d1e24f6143c4839be3c015c191421c4e9449c.tar.gz u-boot-355d1e24f6143c4839be3c015c191421c4e9449c.tar.bz2 |
Merge https://source.denx.de/u-boot/custodians/u-boot-spiWIP/23Oct2021
- Fix mtd erase with mtdpart (Marek BehĂșn)
- NXP fspi driver fixes (Kuldeep Singh)
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/onenand.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/cmd/onenand.c b/cmd/onenand.c index 852ed5c..592985a 100644 --- a/cmd/onenand.c +++ b/cmd/onenand.c @@ -186,9 +186,7 @@ next: static int onenand_block_erase(u32 start, u32 size, int force) { struct onenand_chip *this = mtd->priv; - struct erase_info instr = { - .callback = NULL, - }; + struct erase_info instr = {}; loff_t ofs; int ret; int blocksize = 1 << this->erase_shift; @@ -219,10 +217,7 @@ static int onenand_block_erase(u32 start, u32 size, int force) static int onenand_block_test(u32 start, u32 size) { struct onenand_chip *this = mtd->priv; - struct erase_info instr = { - .callback = NULL, - .priv = 0, - }; + struct erase_info instr = {}; int blocks; loff_t ofs; |