[U-Boot] [PATCH v1 2/2] dm: sf: Update default name of spi flash in structure udevice

Haikun Wang haikun.wang at freescale.com
Wed Apr 29 12:42:01 CEST 2015


Default name of spi flash like this "0:0", update it to "spi_flash at 0:0".

Signed-off-by: Haikun Wang <haikun.wang at freescale.com>
---
 drivers/mtd/spi/sf-uclass.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/spi/sf-uclass.c b/drivers/mtd/spi/sf-uclass.c
index 4b25902..e5612f7 100644
--- a/drivers/mtd/spi/sf-uclass.c
+++ b/drivers/mtd/spi/sf-uclass.c
@@ -56,7 +56,7 @@ int spi_flash_probe_bus_cs(unsigned int busnum, unsigned int cs,
 	char name[20], *str;
 	int ret;
 
-	snprintf(name, sizeof(name), "%d:%d", busnum, cs);
+	snprintf(name, sizeof(name), "spi_flash@%d:%d", busnum, cs);
 	str = strdup(name);
 	ret = spi_get_bus_and_cs(busnum, cs, max_hz, spi_mode,
 				  "spi_flash_std", str, &bus, &slave);
-- 
2.1.0.27.g96db324



More information about the U-Boot mailing list