diff options
author | Simon Glass | 2017-06-14 21:28:40 -0600 |
---|---|---|
committer | Simon Glass | 2017-07-11 10:08:19 -0600 |
commit | 4682c8a19b4eb69f7ad51df3f543375583ce878a (patch) | |
tree | 09ea9daa3d0f8737086c5659fb4f1428e20d235a /cmd | |
parent | 322f73f473d921dbdd0fe11bd62db6a00e5b133c (diff) |
dm: scsi: Add a device pointer to scan_exec(), scsi_bus_reset()
With driver model these functions need a device pointer. Add one even
when CONFIG_DM_SCSI is not defined. This avoids having ugly conditional
function prototypes, When CONFIG_DM_SCSI is not defined we can just ignore
the pointer.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/scsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/scsi.c b/cmd/scsi.c index 4213ec86775..46171e5436a 100644 --- a/cmd/scsi.c +++ b/cmd/scsi.c @@ -36,7 +36,7 @@ static int do_scsi(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) case 2: if (strncmp(argv[1], "res", 3) == 0) { printf("\nReset SCSI\n"); - scsi_bus_reset(); + scsi_bus_reset(NULL); ret = scsi_scan(1); if (ret) return CMD_RET_FAILURE; |