mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user