mtdparts: regroup calls to get_mtd_device_nm
authorBen Gardiner <bengardiner@nanometrics.ca>
Tue, 31 Aug 2010 21:48:00 +0000 (17:48 -0400)
committerScott Wood <scottwood@freescale.com>
Mon, 11 Oct 2010 20:11:00 +0000 (15:11 -0500)
commit0a026d3e86f3981f6fc4f6d634708442f65873e5
tree4047d5db5c15a9dfc11794cd20566b2dce70a390
parent5b8e6bb517ea4f6d8ba9fa11c84e0373bc7ead2c
mtdparts: regroup calls to get_mtd_device_nm

The get_mtd_device_nm function is called in a couple places and the
string that is passed to it is not really used after the calls.

This patch regroups the calls to this function into a new function,
get_mtd_info.

Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca>
Acked-by: Stefan Roese <sr@denx.de>
CC: Wolfgang Denk <wd@denx.de>
common/cmd_mtdparts.c