Merge git://git.denx.de/u-boot-mmc
[oweals/u-boot.git] / drivers / mtd / spi / sf-uclass.c
index 19de964e6121c53642d07a8c28b8afde8f9d137c..83876485fedec73fc717c343392113ae1dce171f 100644 (file)
@@ -46,7 +46,7 @@ struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs,
 
 void spi_flash_free(struct spi_flash *flash)
 {
-       device_remove(flash->spi->dev);
+       device_remove(flash->spi->dev, DM_REMOVE_NORMAL);
 }
 
 int spi_flash_probe_bus_cs(unsigned int busnum, unsigned int cs,