aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-10-23 10:49:28 -0400
committerTom Rini <trini@konsulko.com>2021-10-23 10:49:28 -0400
commit355d1e24f6143c4839be3c015c191421c4e9449c (patch)
treeff68e868d404d117f3f9599740f83fd73c99c306 /cmd
parentf055f2e5a2038002519e5b9affbf259345f4ade9 (diff)
parentb9cfd8b0911209e2ebec887e497510ee42f9e788 (diff)
downloadu-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.c9
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;