diff options
author | Johan Hovold <johan@kernel.org> | 2017-05-12 06:03:35 -0400 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2017-06-20 04:30:09 -0400 |
commit | dada0194ab45b896c6bae5ce89eb78cf52e215d4 (patch) | |
tree | 6b091af7f230c6c12ea7a0dbd33e4b975d101674 | |
parent | ef4b160f280f81cab477ba733177c3a658e60a1c (diff) |
mmc: vub3000: add missing USB-descriptor endianness conversions
Add the missing endianness conversions when printing the USB
device-descriptor idVendor and idProduct fields during probe.
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r-- | drivers/mmc/host/vub300.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/host/vub300.c b/drivers/mmc/host/vub300.c index c061e7c704be..fbeea1a491a6 100644 --- a/drivers/mmc/host/vub300.c +++ b/drivers/mmc/host/vub300.c | |||
@@ -2107,7 +2107,8 @@ static int vub300_probe(struct usb_interface *interface, | |||
2107 | usb_string(udev, udev->descriptor.iSerialNumber, serial_number, | 2107 | usb_string(udev, udev->descriptor.iSerialNumber, serial_number, |
2108 | sizeof(serial_number)); | 2108 | sizeof(serial_number)); |
2109 | dev_info(&udev->dev, "probing VID:PID(%04X:%04X) %s %s %s\n", | 2109 | dev_info(&udev->dev, "probing VID:PID(%04X:%04X) %s %s %s\n", |
2110 | udev->descriptor.idVendor, udev->descriptor.idProduct, | 2110 | le16_to_cpu(udev->descriptor.idVendor), |
2111 | le16_to_cpu(udev->descriptor.idProduct), | ||
2111 | manufacturer, product, serial_number); | 2112 | manufacturer, product, serial_number); |
2112 | command_out_urb = usb_alloc_urb(0, GFP_KERNEL); | 2113 | command_out_urb = usb_alloc_urb(0, GFP_KERNEL); |
2113 | if (!command_out_urb) { | 2114 | if (!command_out_urb) { |