diff options
author | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2014-03-13 18:32:26 +0100 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2014-03-13 18:32:26 +0100 |
commit | 63f347ec4ca94e3b57c6c719e4acaec81b61dc7a (patch) | |
tree | 9391d740c7646cb7808acd6a14d00e6f42cf4fec /drivers/dfu | |
parent | 08798026f24bd7c706e70372f8c323f0702c9a15 (diff) | |
parent | b627eb461bb281a00b543e72e74edc197b5f7b5e (diff) | |
download | u-boot-imx-63f347ec4ca94e3b57c6c719e4acaec81b61dc7a.zip u-boot-imx-63f347ec4ca94e3b57c6c719e4acaec81b61dc7a.tar.gz u-boot-imx-63f347ec4ca94e3b57c6c719e4acaec81b61dc7a.tar.bz2 |
Merge branch 'u-boot-samsung/master' into 'u-boot-arm/master'
Diffstat (limited to 'drivers/dfu')
-rw-r--r-- | drivers/dfu/dfu.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c index 07011e9..56e69fd 100644 --- a/drivers/dfu/dfu.c +++ b/drivers/dfu/dfu.c @@ -19,6 +19,7 @@ static bool dfu_reset_request; static LIST_HEAD(dfu_list); static int dfu_alt_num; +static int alt_num_cnt; bool dfu_reset(void) { @@ -377,6 +378,8 @@ void dfu_free_entities(void) if (t) free(t); INIT_LIST_HEAD(&dfu_list); + + alt_num_cnt = 0; } int dfu_config_entities(char *env, char *interface, int num) @@ -394,11 +397,12 @@ int dfu_config_entities(char *env, char *interface, int num) for (i = 0; i < dfu_alt_num; i++) { s = strsep(&env, ";"); - ret = dfu_fill_entity(&dfu[i], s, i, interface, num); + ret = dfu_fill_entity(&dfu[i], s, alt_num_cnt, interface, num); if (ret) return -1; list_add_tail(&dfu[i].list, &dfu_list); + alt_num_cnt++; } return 0; |