projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
spl: Set up the bloblist in board_init_r()
[oweals/u-boot.git]
/
common
/
spl
/
spl_dfu.c
diff --git
a/common/spl/spl_dfu.c
b/common/spl/spl_dfu.c
index e8d0ba18e63beac632770a595a36d0f784b9d268..5728d43ad3f29f664502e48ca415809328811a39 100644
(file)
--- a/
common/spl/spl_dfu.c
+++ b/
common/spl/spl_dfu.c
@@
-1,12
+1,12
@@
+// SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2016
* Texas Instruments, <www.ti.com>
*
* Ravi B <ravibabu@ti.com>
/*
* (C) Copyright 2016
* Texas Instruments, <www.ti.com>
*
* Ravi B <ravibabu@ti.com>
- *
- * SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
*/
#include <common.h>
+#include <env.h>
#include <spl.h>
#include <linux/compiler.h>
#include <errno.h>
#include <spl.h>
#include <linux/compiler.h>
#include <errno.h>
@@
-15,7
+15,6
@@
#include <g_dnl.h>
#include <usb.h>
#include <dfu.h>
#include <g_dnl.h>
#include <usb.h>
#include <dfu.h>
-#include <environment.h>
static int run_dfu(int usb_index, char *interface, char *devstring)
{
static int run_dfu(int usb_index, char *interface, char *devstring)
{
@@
-39,16
+38,16
@@
int spl_dfu_cmd(int usbctrl, char *dfu_alt_info, char *interface, char *devstr)
int ret;
/* set default environment */
int ret;
/* set default environment */
-
set_default_env(
0);
- str_env =
getenv
(dfu_alt_info);
+
env_set_default(NULL,
0);
+ str_env =
env_get
(dfu_alt_info);
if (!str_env) {
if (!str_env) {
-
error("\"dfu_alt_info\" env variable not defined!\n"
);
+
pr_err("\"%s\" env variable not defined!\n", dfu_alt_info
);
return -EINVAL;
}
return -EINVAL;
}
- ret =
setenv
("dfu_alt_info", str_env);
+ ret =
env_set
("dfu_alt_info", str_env);
if (ret) {
if (ret) {
-
erro
r("unable to set env variable \"dfu_alt_info\"!\n");
+
pr_er
r("unable to set env variable \"dfu_alt_info\"!\n");
return -EINVAL;
}
return -EINVAL;
}