]> git.sur5r.net Git - u-boot/commitdiff
disk/part: introduce get_device_and_partition
authorRob Herring <rob.herring@calxeda.com>
Fri, 21 Sep 2012 04:08:17 +0000 (04:08 +0000)
committerTom Rini <trini@ti.com>
Tue, 25 Sep 2012 21:44:40 +0000 (14:44 -0700)
All block device related commands (scsiboot, fatload, ext2ls, etc.) have
simliar duplicated device and partition parsing and selection code. This
adds a common function to replace various implementations.

The new function has an enhancement over current versions. If no device
or partition is specified on the command line, the bootdevice env variable
will be used (scsiboot does this).

Signed-off-by: Rob Herring <rob.herring@calxeda.com>

No differences found