Commit 3fdad69e authored by Tudor Ambarus's avatar Tudor Ambarus
Browse files

mtd: spi-nor: xilinx: Use manufacturer late_init() to set setup method



post_sfdp was misleading in this case, as SFDP is not supported by
xilinx. Plus, there's no fixup here, just setting the correct
setup method, as required by xilinx parts.

Signed-off-by: default avatarTudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: default avatarMichael Walle <michael@walle.cc>
Reviewed-by: default avatarPratyush Yadav <p.yadav@ti.com>
Link: https://lore.kernel.org/r/20211029172633.886453-10-tudor.ambarus@microchip.com
parent 00947a96
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -80,13 +80,13 @@ static int xilinx_nor_setup(struct spi_nor *nor,
	return 0;
}

static void xilinx_post_sfdp_fixups(struct spi_nor *nor)
static void xilinx_late_init(struct spi_nor *nor)
{
	nor->params->setup = xilinx_nor_setup;
}

static const struct spi_nor_fixups xilinx_fixups = {
	.post_sfdp = xilinx_post_sfdp_fixups,
	.late_init = xilinx_late_init,
};

const struct spi_nor_manufacturer spi_nor_xilinx = {