]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: usb: Move storage device scanning into its own function
authorSimon Glass <sjg@chromium.org>
Wed, 25 Mar 2015 18:22:15 +0000 (12:22 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 19:47:54 +0000 (21:47 +0200)
commite5808785c809d525aaec759e18b154afacb3f0a5
tree6fed5515b33029f5494cbd0273bc510444e7eff4
parent78b8f5a1cbda10d9e5d55606fc5a18c7737283e2
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>
common/usb_storage.c