diff options
author | Tom Rini | 2019-06-17 11:27:21 -0400 |
---|---|---|
committer | Tom Rini | 2019-06-17 11:27:21 -0400 |
commit | c3e8aa1a9ed5f6db7345b23a2f8f136e987ebd4d (patch) | |
tree | ebe52eaaed86f99d7f5ce1d6705f355454db54cc /common/spl | |
parent | 77f6e2dd0551d8a825bab391a1bd6b838874bcd4 (diff) | |
parent | 220f655176de8e6aa4aaea91bb2182260d26c4a4 (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-usb
- Assorted gadget fixes
Diffstat (limited to 'common/spl')
-rw-r--r-- | common/spl/spl_dfu.c | 2 | ||||
-rw-r--r-- | common/spl/spl_sdp.c | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/common/spl/spl_dfu.c b/common/spl/spl_dfu.c index 01178f611f4..c0225dc4e18 100644 --- a/common/spl/spl_dfu.c +++ b/common/spl/spl_dfu.c @@ -41,7 +41,7 @@ int spl_dfu_cmd(int usbctrl, char *dfu_alt_info, char *interface, char *devstr) set_default_env(NULL, 0); str_env = env_get(dfu_alt_info); if (!str_env) { - pr_err("\"dfu_alt_info\" env variable not defined!\n"); + pr_err("\"%s\" env variable not defined!\n", dfu_alt_info); return -EINVAL; } diff --git a/common/spl/spl_sdp.c b/common/spl/spl_sdp.c index 807256e908c..7fc44049718 100644 --- a/common/spl/spl_sdp.c +++ b/common/spl/spl_sdp.c @@ -17,7 +17,11 @@ static int spl_sdp_load_image(struct spl_image_info *spl_image, const int controller_index = 0; g_dnl_clear_detach(); - g_dnl_register("usb_dnl_sdp"); + ret = g_dnl_register("usb_dnl_sdp"); + if (ret) { + pr_err("SDP dnl register failed: %d\n", ret); + return ret; + } ret = sdp_init(controller_index); if (ret) { |