commit | 67dfde32442c9addc946f69e37ce272f324fbf81 | [log] [tgz] |
---|---|---|
author | Emmanuel Vadot <manu@bidouilliste.com> | Thu Jan 05 06:40:21 2017 +0100 |
committer | Tom Rini <trini@konsulko.com> | Fri Jan 20 15:37:58 2017 -0500 |
tree | 809b6a2f91f30e8d1b54d8a156c3aaf7baabffd5 | |
parent | c4971b99ad523d8642e856bed2073febb0756202 [diff] |
api: storage: Test all block device in dev_stor_get In a config with one MMC at device id '1' and no MMC at device id '0' (a BeagleBone Black with no sd inserted for example), the current code will first test to access the MMC 0 (sd port), seeing that no device is present it will simply return that no more device are present for this class. This patch fixes this by testing all devices for each class. Signed-off-by: Emmanuel Vadot <manu@bidouilliste.com>