diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2007-07-05 18:01:38 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-07-05 18:01:38 +0200 |
commit | cf7a56fc78a3304fd9ad4b22c6da30cc452a5b4b (patch) | |
tree | d74423adf47b86daea48bac089b9ecc32afe4d42 /common/env.c | |
parent | 5c1f0869414930fdebc35755217ead72d39879ec (diff) | |
download | barebox-cf7a56fc78a3304fd9ad4b22c6da30cc452a5b4b.tar.gz |
svn_rev_268
WIP
Diffstat (limited to 'common/env.c')
-rw-r--r-- | common/env.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/env.c b/common/env.c index d8fb867957..8a69017218 100644 --- a/common/env.c +++ b/common/env.c @@ -123,7 +123,7 @@ int add_env_spec(char *spec) env_list->next = NULL; - err = read(info.device, env, env_size, info.start, 0); + err = dev_read(info.device, env, env_size, info.start, 0); if (err != env_size) goto err_out; @@ -206,13 +206,13 @@ int saveenv(void) *(ulong *)env = crc32(0, env + sizeof(ulong), env_size - sizeof(ulong)); - ret = erase(info.device, info.size, info.start); + ret = dev_erase(info.device, info.size, info.start); if (ret) { printf("unable to erase\n"); goto err_out; } - ret = write(info.device, env, info.size, info.start, 0); + ret = dev_write(info.device, env, info.size, info.start, 0); if (ret < 0) { printf("unable to write\n"); goto err_out; |