diff options
author | Tudor Ambarus <tudor.ambarus@microchip.com> | 2019-09-24 07:45:50 +0000 |
---|---|---|
committer | Tudor Ambarus <tudor.ambarus@microchip.com> | 2019-10-23 09:27:20 +0300 |
commit | 1a21bdfeac051c667352e8e16ee51b90e9a837c5 (patch) | |
tree | 30bb8a93557eddf5bf6da0725afadb05d8befaee | |
parent | 172b33212d76a4bc4b18ba952e8a431b4a2d6c15 (diff) | |
download | linux-1a21bdfeac051c667352e8e16ee51b90e9a837c5.tar.bz2 |
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: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
-rw-r--r-- | drivers/mtd/spi-nor/hisi-sfc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/spi-nor/hisi-sfc.c b/drivers/mtd/spi-nor/hisi-sfc.c index 6dac9dd8bf42..c99ed9cdbf9c 100644 --- a/drivers/mtd/spi-nor/hisi-sfc.c +++ b/drivers/mtd/spi-nor/hisi-sfc.c @@ -364,7 +364,6 @@ static int hisi_spi_nor_register(struct device_node *np, nor->write_reg = hisi_spi_nor_write_reg; nor->read = hisi_spi_nor_read; nor->write = hisi_spi_nor_write; - nor->erase = NULL; ret = spi_nor_scan(nor, NULL, &hwcaps); if (ret) return ret; |