|
@@ -46,7 +46,7 @@ struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs,
|
|
|
|
|
|
void spi_flash_free(struct spi_flash *flash)
|
|
|
{
|
|
|
- spi_flash_remove(flash->spi->dev);
|
|
|
+ device_remove(flash->spi->dev);
|
|
|
}
|
|
|
|
|
|
int spi_flash_probe_bus_cs(unsigned int busnum, unsigned int cs,
|
|
@@ -69,11 +69,6 @@ int spi_flash_probe_bus_cs(unsigned int busnum, unsigned int cs,
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-int spi_flash_remove(struct udevice *dev)
|
|
|
-{
|
|
|
- return device_remove(dev);
|
|
|
-}
|
|
|
-
|
|
|
static int spi_flash_post_bind(struct udevice *dev)
|
|
|
{
|
|
|
#if defined(CONFIG_NEEDS_MANUAL_RELOC)
|