summaryrefslogtreecommitdiff
path: root/drivers/mtd/spi
diff options
context:
space:
mode:
authorJagan Teki <jteki@openedev.com>2015-12-14 09:02:06 +0530
committerJagan Teki <jteki@openedev.com>2016-01-13 18:47:26 +0530
commit11c579bc9cd3ecae1d913565f7a69e7b99de302d (patch)
tree1b11bf11a99e31ee085a83d1fe89dffa489fb93d /drivers/mtd/spi
parent6f3096585b6b61c115074a7e959cbe6f74d8e45d (diff)
downloadu-boot-imx-11c579bc9cd3ecae1d913565f7a69e7b99de302d.zip
u-boot-imx-11c579bc9cd3ecae1d913565f7a69e7b99de302d.tar.gz
u-boot-imx-11c579bc9cd3ecae1d913565f7a69e7b99de302d.tar.bz2
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>
Diffstat (limited to 'drivers/mtd/spi')
-rw-r--r--drivers/mtd/spi/sf-uclass.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/mtd/spi/sf-uclass.c b/drivers/mtd/spi/sf-uclass.c
index 72e0f6b..95ffad4 100644
--- a/drivers/mtd/spi/sf-uclass.c
+++ b/drivers/mtd/spi/sf-uclass.c
@@ -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)