Skip to content
Snippets Groups Projects
Commit a5e1bcde authored by Haikun.Wang@freescale.com's avatar Haikun.Wang@freescale.com Committed by Simon Glass
Browse files

dm: sf: Update default name of spi flash in structure udevice


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

Signed-off-by: default avatarHaikun Wang <haikun.wang@freescale.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
parent f56da290
No related branches found
No related tags found
No related merge requests found
......@@ -53,10 +53,10 @@ int spi_flash_probe_bus_cs(unsigned int busnum, unsigned int cs,
{
struct spi_slave *slave;
struct udevice *bus;
char name[20], *str;
char name[30], *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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment