commit | 03f3101826f426ebb79f9339c010f8108acc0f33 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sun Jul 19 10:15:32 2020 -0600 |
committer | Tom Rini <trini@konsulko.com> | Mon Aug 03 22:19:54 2020 -0400 |
tree | b60237cd3ceb1dc7bc9af89d2e3329e45d364bf7 | |
parent | 4ec73134fd9d3b3bc92480d1903ac94d8809f920 [diff] |
mtd: spi-nor: Tidy up error handling / debug code The -ENODEV error value in spi_nor_read_id() is incorrect since there clearly is a device - it just cannot be supported. Use -ENOMEDIUM instead which has the virtue of being less common. Fix the return value in spi_nor_scan(). Also there are a few printf() statements which should be debug() since they bloat the code with unused strings at present. Fix those while here. Signed-off-by: Simon Glass <sjg@chromium.org>