Commit 1a21bdfe authored by Tudor Ambarus's avatar Tudor Ambarus

mtd: spi-nor: hisi-sfc: Drop nor->erase NULL assignment

The pointer to 'struct spi_nor' is kzalloc'ed above in the code.
Signed-off-by: default avatarTudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: default avatarBoris Brezillon <boris.brezillon@collabora.com>
parent 172b3321
...@@ -364,7 +364,6 @@ static int hisi_spi_nor_register(struct device_node *np, ...@@ -364,7 +364,6 @@ static int hisi_spi_nor_register(struct device_node *np,
nor->write_reg = hisi_spi_nor_write_reg; nor->write_reg = hisi_spi_nor_write_reg;
nor->read = hisi_spi_nor_read; nor->read = hisi_spi_nor_read;
nor->write = hisi_spi_nor_write; nor->write = hisi_spi_nor_write;
nor->erase = NULL;
ret = spi_nor_scan(nor, NULL, &hwcaps); ret = spi_nor_scan(nor, NULL, &hwcaps);
if (ret) if (ret)
return ret; return ret;
......
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