From: Tudor Ambarus Date: Tue, 24 Sep 2019 07:45:50 +0000 (+0000) Subject: mtd: spi-nor: hisi-sfc: Drop nor->erase NULL assignment X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~3445^2~1^2~41 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=1a21bdfeac051c667352e8e16ee51b90e9a837c5;p=linux.git 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 Reviewed-by: Boris Brezillon --- 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;