mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-31 19:41:46 +00:00
sf: Remove spi_flash_remove
Use direct call to device_remove instead of exctra spi_flash_remove defination. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Jagan Teki <jteki@openedev.com>
This commit is contained in:
parent
6f3096585b
commit
11c579bc9c
2 changed files with 1 additions and 8 deletions
|
@ -46,7 +46,7 @@ struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs,
|
||||||
|
|
||||||
void spi_flash_free(struct spi_flash *flash)
|
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,
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int spi_flash_remove(struct udevice *dev)
|
|
||||||
{
|
|
||||||
return device_remove(dev);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int spi_flash_post_bind(struct udevice *dev)
|
static int spi_flash_post_bind(struct udevice *dev)
|
||||||
{
|
{
|
||||||
#if defined(CONFIG_NEEDS_MANUAL_RELOC)
|
#if defined(CONFIG_NEEDS_MANUAL_RELOC)
|
||||||
|
|
|
@ -170,8 +170,6 @@ struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs,
|
||||||
/* Compatibility function - this is the old U-Boot API */
|
/* Compatibility function - this is the old U-Boot API */
|
||||||
void spi_flash_free(struct spi_flash *flash);
|
void spi_flash_free(struct spi_flash *flash);
|
||||||
|
|
||||||
int spi_flash_remove(struct udevice *flash);
|
|
||||||
|
|
||||||
static inline int spi_flash_read(struct spi_flash *flash, u32 offset,
|
static inline int spi_flash_read(struct spi_flash *flash, u32 offset,
|
||||||
size_t len, void *buf)
|
size_t len, void *buf)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue