diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-07-10 15:10:09 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-07-18 14:50:21 +0200 |
commit | 81a2205228646a9abf3548c197d415ef9167a1c5 (patch) | |
tree | 7827f7fe09304bbbe2bd36afd394c9d66309f646 /commands | |
parent | 99b79e4a456b6bfee07b385cca722c5da925f28b (diff) | |
download | barebox-81a2205228646a9abf3548c197d415ef9167a1c5.tar.gz barebox-81a2205228646a9abf3548c197d415ef9167a1c5.tar.xz |
USB: host: drop force rescan
We can now detect changes in the USB device hierarchy properly, so
the 'force' option to the usb command is no longer necessary. We just
scan the busses each time the usb command is called.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r-- | commands/usb.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/commands/usb.c b/commands/usb.c index c158852ca9..a37d50327f 100644 --- a/commands/usb.c +++ b/commands/usb.c @@ -112,13 +112,10 @@ static void usb_show_devices(bool tree) static int do_usb(int argc, char *argv[]) { int opt; - int force = 0, tree = 0, show = 0; + int tree = 0, show = 0; - while ((opt = getopt(argc, argv, "fts")) > 0) { + while ((opt = getopt(argc, argv, "ts")) > 0) { switch (opt) { - case 'f': - force = 1; - break; case 't': tree = 1; show = 1; @@ -129,7 +126,7 @@ static int do_usb(int argc, char *argv[]) } } - usb_rescan(force); + usb_rescan(); if (show) usb_show_devices(tree); |