Commit 11c579bc9cd3ecae1d913565f7a69e7b99de302d
1 parent
6f3096585b
Exists in
v2017.01-smarct4x
and in
30 other branches
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>
Showing 2 changed files with 1 additions and 8 deletions Side-by-side Diff
drivers/mtd/spi/sf-uclass.c
... | ... | @@ -46,7 +46,7 @@ |
46 | 46 | |
47 | 47 | void spi_flash_free(struct spi_flash *flash) |
48 | 48 | { |
49 | - spi_flash_remove(flash->spi->dev); | |
49 | + device_remove(flash->spi->dev); | |
50 | 50 | } |
51 | 51 | |
52 | 52 | int spi_flash_probe_bus_cs(unsigned int busnum, unsigned int cs, |
... | ... | @@ -67,11 +67,6 @@ |
67 | 67 | |
68 | 68 | *devp = slave->dev; |
69 | 69 | return 0; |
70 | -} | |
71 | - | |
72 | -int spi_flash_remove(struct udevice *dev) | |
73 | -{ | |
74 | - return device_remove(dev); | |
75 | 70 | } |
76 | 71 | |
77 | 72 | static int spi_flash_post_bind(struct udevice *dev) |
include/spi_flash.h
... | ... | @@ -170,8 +170,6 @@ |
170 | 170 | /* Compatibility function - this is the old U-Boot API */ |
171 | 171 | void spi_flash_free(struct spi_flash *flash); |
172 | 172 | |
173 | -int spi_flash_remove(struct udevice *flash); | |
174 | - | |
175 | 173 | static inline int spi_flash_read(struct spi_flash *flash, u32 offset, |
176 | 174 | size_t len, void *buf) |
177 | 175 | { |