summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/vub300.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2017-05-12 12:03:35 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2017-06-20 10:30:09 +0200
commitdada0194ab45b896c6bae5ce89eb78cf52e215d4 (patch)
tree6b091af7f230c6c12ea7a0dbd33e4b975d101674 /drivers/mmc/host/vub300.c
parentef4b160f280f81cab477ba733177c3a658e60a1c (diff)
downloadlinux-dada0194ab45b896c6bae5ce89eb78cf52e215d4.tar.gz
linux-dada0194ab45b896c6bae5ce89eb78cf52e215d4.tar.bz2
linux-dada0194ab45b896c6bae5ce89eb78cf52e215d4.zip
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>
Diffstat (limited to 'drivers/mmc/host/vub300.c')
-rw-r--r--drivers/mmc/host/vub300.c3
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,
usb_string(udev, udev->descriptor.iSerialNumber, serial_number,
sizeof(serial_number));
dev_info(&udev->dev, "probing VID:PID(%04X:%04X) %s %s %s\n",
- udev->descriptor.idVendor, udev->descriptor.idProduct,
+ le16_to_cpu(udev->descriptor.idVendor),
+ le16_to_cpu(udev->descriptor.idProduct),
manufacturer, product, serial_number);
command_out_urb = usb_alloc_urb(0, GFP_KERNEL);
if (!command_out_urb) {