Commit 8e4bdda
Joel Slebodnick
mtd: spi-nor: core: Use auto-detection only once
JIRA: https://issues.redhat.com/browse/RHEL-40636
commit bffabd1
Author: Tudor Ambarus <tudor.ambarus@microchip.com>
Date: Wed Apr 20 13:34:19 2022 +0300
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
Signed-off-by: Joel Slebodnick <jslebodn@redhat.com>1 parent 704ec89 commit 8e4bdda
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3038 | 3038 | | |
3039 | 3039 | | |
3040 | 3040 | | |
3041 | | - | |
3042 | | - | |
3043 | | - | |
| 3041 | + | |
3044 | 3042 | | |
3045 | 3043 | | |
3046 | 3044 | | |
| |||
0 commit comments