X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=cmd%2Fsf.c;h=f971eec781cc88978f181a9a24ec9d37dff6b11d;hb=d36a27adbbee6f80135642a046901cc6f8c703de;hp=286906c3a151c916d549df6938ad73a0273aec94;hpb=c6f086ddcbfb47918b82f6a135c61f432540da42;p=u-boot diff --git a/cmd/sf.c b/cmd/sf.c index 286906c3a1..f971eec781 100644 --- a/cmd/sf.c +++ b/cmd/sf.c @@ -124,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);