aboutsummaryrefslogtreecommitdiff
path: root/cmd/dm.c
diff options
context:
space:
mode:
authorSean Anderson2020-04-06 10:23:09 -0400
committerTom Rini2020-04-09 09:18:56 -0400
commit97c7ac214e1df5579a1f9f35d36c717e6975619a (patch)
tree8df9f976ce65a3257a7866b0d65fa4c19efa25fb /cmd/dm.c
parentdfd5321becc54d7ce9fd564aaaba70a2132c058e (diff)
cmd: Add test and fix bugs for dm drivers
Add a test for the dm drivers command. Also fix a null pointer dereference revealed by said test. Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd/dm.c')
-rw-r--r--cmd/dm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/dm.c b/cmd/dm.c
index 108707c298a..7a90685f8b6 100644
--- a/cmd/dm.c
+++ b/cmd/dm.c
@@ -41,7 +41,7 @@ static int do_dm_dump_devres(cmd_tbl_t *cmdtp, int flag, int argc,
}
static int do_dm_dump_drivers(cmd_tbl_t *cmdtp, int flag, int argc,
- char * const argv[])
+ char * const argv[])
{
dm_dump_drivers();
@@ -94,5 +94,5 @@ U_BOOT_CMD(
"tree Dump driver model tree ('*' = activated)\n"
"dm uclass Dump list of instances for each uclass\n"
"dm devres Dump list of device resources for each device\n"
- "dm drivers Dump list of drivers and their compatible strings\n"
+ "dm drivers Dump list of drivers and their compatible strings"
);