commit | df7d34f5e80ae9eee981b453982b43c2b320a450 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Wed Mar 25 12:22:15 2015 -0600 |
committer | Simon Glass <sjg@chromium.org> | Sat Apr 18 11:11:22 2015 -0600 |
tree | c205c3a1739c61724d797f67eb4c5c4b4e4a3d44 | |
parent | 0f50b164e0e1d6ffd84e72cb49f0e7ee04c533a2 [diff] |
dm: usb: Move storage device scanning into its own function The usb_stor_scan() function is quite long, so split out the code that scans each device into its own function. Also, rather than setting up the block device list once at the start, set it up as each device is scanned. This makes it possible to use this code from driver model. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Marek Vasut <marex@denx.de>