Commit 74ea6e82f8f626c8c3098dea72f008e8ec0357f9

Authored by Mario Six
Committed by Jagan Teki
1 parent c5b88f29ba

spi: Remove spi_flash_probe_fdt

Commit ba45756 ("dm: x86: spi: Convert ICH SPI driver to driver model")
removed the last usage of the spi_flash_probe_fdt function, rendering it
obsolete.

This patch removes the function.

Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Signed-off-by: Mario Six <mario.six@gdsys.cc>

Showing 2 changed files with 0 additions and 25 deletions Side-by-side Diff

drivers/mtd/spi/sf_probe.c
... ... @@ -87,19 +87,6 @@
87 87 return spi_flash_probe_tail(bus);
88 88 }
89 89  
90   -#ifdef CONFIG_OF_SPI_FLASH
91   -struct spi_flash *spi_flash_probe_fdt(const void *blob, int slave_node,
92   - int spi_node)
93   -{
94   - struct spi_slave *bus;
95   -
96   - bus = spi_setup_slave_fdt(blob, slave_node, spi_node);
97   - if (!bus)
98   - return NULL;
99   - return spi_flash_probe_tail(bus);
100   -}
101   -#endif
102   -
103 90 void spi_flash_free(struct spi_flash *flash)
104 91 {
105 92 #ifdef CONFIG_SPI_FLASH_MTD
... ... @@ -194,18 +194,6 @@
194 194 struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs,
195 195 unsigned int max_hz, unsigned int spi_mode);
196 196  
197   -/**
198   - * Set up a new SPI flash from an fdt node
199   - *
200   - * @param blob Device tree blob
201   - * @param slave_node Pointer to this SPI slave node in the device tree
202   - * @param spi_node Cached pointer to the SPI interface this node belongs
203   - * to
204   - * @return 0 if ok, -1 on error
205   - */
206   -struct spi_flash *spi_flash_probe_fdt(const void *blob, int slave_node,
207   - int spi_node);
208   -
209 197 void spi_flash_free(struct spi_flash *flash);
210 198  
211 199 static inline int spi_flash_read(struct spi_flash *flash, u32 offset,