diff options
Diffstat (limited to 'drivers/usb/serial/kl5kusb105.c')
-rw-r--r-- | drivers/usb/serial/kl5kusb105.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/serial/kl5kusb105.c b/drivers/usb/serial/kl5kusb105.c index b395ac759888..f328948d74e3 100644 --- a/drivers/usb/serial/kl5kusb105.c +++ b/drivers/usb/serial/kl5kusb105.c | |||
@@ -54,6 +54,7 @@ | |||
54 | #include <linux/tty_flip.h> | 54 | #include <linux/tty_flip.h> |
55 | #include <linux/module.h> | 55 | #include <linux/module.h> |
56 | #include <asm/uaccess.h> | 56 | #include <asm/uaccess.h> |
57 | #include <asm/unaligned.h> | ||
57 | #include <linux/usb.h> | 58 | #include <linux/usb.h> |
58 | #include <linux/usb/serial.h> | 59 | #include <linux/usb/serial.h> |
59 | #include "kl5kusb105.h" | 60 | #include "kl5kusb105.h" |
@@ -235,7 +236,7 @@ static int klsi_105_get_line_state(struct usb_serial_port *port, | |||
235 | if (rc < 0) | 236 | if (rc < 0) |
236 | err("Reading line status failed (error = %d)", rc); | 237 | err("Reading line status failed (error = %d)", rc); |
237 | else { | 238 | else { |
238 | status = le16_to_cpu(*(u16 *)status_buf); | 239 | status = le16_to_cpu(get_unaligned((__le16 *)status_buf)); |
239 | 240 | ||
240 | info("%s - read status %x %x", __func__, | 241 | info("%s - read status %x %x", __func__, |
241 | status_buf[0], status_buf[1]); | 242 | status_buf[0], status_buf[1]); |