aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/serial/mos7840.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c
index c10fc15bf851..d953d674f222 100644
--- a/drivers/usb/serial/mos7840.c
+++ b/drivers/usb/serial/mos7840.c
@@ -2221,14 +2221,14 @@ static int mos7840_probe(struct usb_serial *serial,
2221 2221
2222 kfree(buf); 2222 kfree(buf);
2223out: 2223out:
2224 usb_set_serial_data(serial, (void *)device_type); 2224 usb_set_serial_data(serial, (void *)(unsigned long)device_type);
2225 2225
2226 return 0; 2226 return 0;
2227} 2227}
2228 2228
2229static int mos7840_calc_num_ports(struct usb_serial *serial) 2229static int mos7840_calc_num_ports(struct usb_serial *serial)
2230{ 2230{
2231 int device_type = (int)usb_get_serial_data(serial); 2231 int device_type = (unsigned long)usb_get_serial_data(serial);
2232 int mos7840_num_ports; 2232 int mos7840_num_ports;
2233 2233
2234 mos7840_num_ports = (device_type >> 4) & 0x000F; 2234 mos7840_num_ports = (device_type >> 4) & 0x000F;
@@ -2239,7 +2239,7 @@ static int mos7840_calc_num_ports(struct usb_serial *serial)
2239static int mos7840_port_probe(struct usb_serial_port *port) 2239static int mos7840_port_probe(struct usb_serial_port *port)
2240{ 2240{
2241 struct usb_serial *serial = port->serial; 2241 struct usb_serial *serial = port->serial;
2242 int device_type = (int)usb_get_serial_data(serial); 2242 int device_type = (unsigned long)usb_get_serial_data(serial);
2243 struct moschip_port *mos7840_port; 2243 struct moschip_port *mos7840_port;
2244 int status; 2244 int status;
2245 int pnum; 2245 int pnum;