diff options
| author | 2022-04-20 13:34:19 +0300 | |
|---|---|---|
| committer | 2022-04-27 14:57:35 +0530 | |
| commit | bffabd1c727d663adf67ea762acc0e57164b3281 (patch) | |
| tree | 995cbd4bbec279ebdcead882ac28fe918e8b7a9b /include/linux/phy/git:/ssh:/git@git.zx2c4.com | |
| parent | mtd: spi-nor: Introduce spi_nor_match_id() (diff) | |
| download | linux-dev-bffabd1c727d663adf67ea762acc0e57164b3281.tar.xz linux-dev-bffabd1c727d663adf67ea762acc0e57164b3281.zip | |
mtd: spi-nor: core: Use auto-detection only once
In case spi_nor_match_name() returned NULL, the auto detection was
issued twice. There's no reason to try to detect the same chip twice,
do the auto detection only once.
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Michael Walle <michael@walle.cc>
Link: https://lore.kernel.org/r/20220420103427.47867-4-tudor.ambarus@microchip.com
Diffstat (limited to 'include/linux/phy/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
