]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
usb: common: Fix return value in usb_get_maximum_speed()
authorMichal Simek <michal.simek@xilinx.com>
Wed, 8 Mar 2017 08:39:06 +0000 (09:39 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 9 Mar 2017 14:02:53 +0000 (15:02 +0100)
Do not use dr_mode unknown value in speed function.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/usb/common/common.c

index a3b33c49f979445b96a724b9b8db5f269cc09fc7..04a06481b6c442296d6ba92dbfc63f845c2d3e9e 100644 (file)
@@ -58,7 +58,7 @@ enum usb_device_speed usb_get_maximum_speed(int node)
        max_speed = fdt_getprop(fdt, node, "maximum-speed", NULL);
        if (!max_speed) {
                error("usb maximum-speed not found\n");
-               return USB_DR_MODE_UNKNOWN;
+               return USB_SPEED_UNKNOWN;
        }
 
        for (i = 0; i < ARRAY_SIZE(speed_names); i++)