commit | d3e8f63026fa37dc09dcfd803df81e5452f87df9 | [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 | 6215bd4c1fd6bce95072ad123cf1e4af94ab44e2 [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>