mtd: spi-nor: Change to sfc_nor alias

RK SDK solution develop a serials of support for better compatibility.
All of these is based on "sfc_nor" alias.

Change-Id: I4291a07420f4ad9f02a4d0ef3498061ae910cd7a
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
Jon Lin
2021-09-07 17:45:33 +08:00
parent f8094cf4bd
commit 5fcb2ec048

View File

@@ -3180,6 +3180,10 @@ int spi_nor_scan(struct spi_nor *nor, const char *name,
if (!mtd->name)
mtd->name = dev_name(dev);
if (IS_ENABLED(CONFIG_SPI_ROCKCHIP_SFC))
mtd->name = "sfc_nor";
mtd->priv = nor;
mtd->type = MTD_NORFLASH;
mtd->writesize = 1;