diff options
| author | Simon Glass <sjg@chromium.org> | 2019-12-06 21:42:50 -0700 |
|---|---|---|
| committer | Bin Meng <bmeng.cn@gmail.com> | 2019-12-15 11:44:24 +0800 |
| commit | 4806fcea1a4b0143fc57932bc5cbdffdf8afca4e (patch) | |
| tree | 43ef300a6cbe7a112458589f0ba7ae587e1af261 /drivers | |
| parent | 3937df3d6c0b88745399434c58d80960f7bf31af (diff) | |
| download | u-boot-4806fcea1a4b0143fc57932bc5cbdffdf8afca4e.tar.gz u-boot-4806fcea1a4b0143fc57932bc5cbdffdf8afca4e.tar.xz u-boot-4806fcea1a4b0143fc57932bc5cbdffdf8afca4e.zip | |
mtd: spi: Export spi_flash_std_probe()
With of-platdata we need to create drivers for particular chips, or at
least drivers that are separate from the standard code, since C structures
are created by dtoc which are private to that driver.
To avoid duplicating the probing code, export this probe function for use
by these drivers.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/mtd/spi/sf_probe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c index f051e473ff..72b6ee702d 100644 --- a/drivers/mtd/spi/sf_probe.c +++ b/drivers/mtd/spi/sf_probe.c @@ -137,7 +137,7 @@ static int spi_flash_std_get_sw_write_prot(struct udevice *dev) return spi_flash_cmd_get_sw_write_prot(flash); } -static int spi_flash_std_probe(struct udevice *dev) +int spi_flash_std_probe(struct udevice *dev) { struct spi_slave *slave = dev_get_parent_priv(dev); struct dm_spi_slave_platdata *plat = dev_get_parent_platdata(dev); |
