Commit 7d05fc68 authored by David S. Miller's avatar David S. Miller

drivers/usb/serial/visor.c: Kill 64-bit cast ptr to int warnings.

parent 80ea21f1
...@@ -591,7 +591,7 @@ static int visor_probe (struct usb_serial *serial) ...@@ -591,7 +591,7 @@ static int visor_probe (struct usb_serial *serial)
info("%s: port %d, is for %s use", serial->type->name, info("%s: port %d, is for %s use", serial->type->name,
connection_info->connections[i].port, string); connection_info->connections[i].port, string);
/* save off our num_ports info so that we can use it in the calc_num_ports call */ /* save off our num_ports info so that we can use it in the calc_num_ports call */
serial->private = (void *)num_ports; serial->private = (void *)(long)num_ports;
} }
} }
...@@ -637,7 +637,7 @@ static int visor_calc_num_ports (struct usb_serial *serial) ...@@ -637,7 +637,7 @@ static int visor_calc_num_ports (struct usb_serial *serial)
int num_ports = 0; int num_ports = 0;
if (serial->private) { if (serial->private) {
num_ports = (int)serial->private; num_ports = (int)(long)serial->private;
serial->private = NULL; serial->private = NULL;
} }
return num_ports; return num_ports;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment