]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - cmd/sf.c
armv8: ls1088aqds: Change phy mode to PHY_INTERFACE_MODE_RGMII_ID
[people/ms/u-boot.git] / cmd / sf.c
index 42862d9d921a9e0121169bb9c552a388cbf56fb8..f971eec781cc88978f181a9a24ec9d37dff6b11d 100644 (file)
--- a/cmd/sf.c
+++ b/cmd/sf.c
@@ -88,6 +88,8 @@ static int do_spi_flash_probe(int argc, char * const argv[])
 #ifdef CONFIG_DM_SPI_FLASH
        struct udevice *new, *bus_dev;
        int ret;
+       /* In DM mode defaults will be taken from DT */
+       speed = 0, mode = 0;
 #else
        struct spi_flash *new;
 #endif
@@ -122,8 +124,7 @@ static int do_spi_flash_probe(int argc, char * const argv[])
        /* Remove the old device, otherwise probe will just be a nop */
        ret = spi_find_bus_and_cs(bus, cs, &bus_dev, &new);
        if (!ret) {
-               device_remove(new);
-               device_unbind(new);
+               device_remove(new, DM_REMOVE_NORMAL);
        }
        flash = NULL;
        ret = spi_flash_probe_bus_cs(bus, cs, speed, mode, &new);