cmd/gpt: Support gpt command for all devices
authorEgbert Eich <eich@suse.com>
Fri, 4 Oct 2013 16:53:04 +0000 (18:53 +0200)
committerTom Rini <trini@ti.com>
Fri, 8 Nov 2013 20:25:12 +0000 (15:25 -0500)
commit619f0fdf3786a88129d44d4114e0018a349f8a14
treebaa459a41e86e010bc33fc3c81703944d26f97d7
parent9e224080536ea400a83ce09d0a61d064cef7bdd1
cmd/gpt: Support gpt command for all devices

The gpt command was only implemented for mmc devices. There is no reason
why this command should not be generalized and be applied all other
storage device classes.
This change both simplifies the implementation and eliminates a
build failure for systems that don't support mmcs.

Signed-off-by: Egbert Eich <eich@suse.com>
Tested-by: Piotr Wilczek <p.wilczek@samsung.com>
[trini: Change coding style slightly]
Signed-off-by: Tom Rini <trini@ti.com>
common/cmd_gpt.c