aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/serial/usb-serial-simple.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/serial/usb-serial-simple.c b/drivers/usb/serial/usb-serial-simple.c
index fb79775447b0..02cb77a1e79d 100644
--- a/drivers/usb/serial/usb-serial-simple.c
+++ b/drivers/usb/serial/usb-serial-simple.c
@@ -20,7 +20,7 @@
20#include <linux/usb.h> 20#include <linux/usb.h>
21#include <linux/usb/serial.h> 21#include <linux/usb/serial.h>
22 22
23#define DEVICE(vendor, IDS) \ 23#define DEVICE_N(vendor, IDS, nport) \
24static const struct usb_device_id vendor##_id_table[] = { \ 24static const struct usb_device_id vendor##_id_table[] = { \
25 IDS(), \ 25 IDS(), \
26 { }, \ 26 { }, \
@@ -31,9 +31,10 @@ static struct usb_serial_driver vendor##_device = { \
31 .name = #vendor, \ 31 .name = #vendor, \
32 }, \ 32 }, \
33 .id_table = vendor##_id_table, \ 33 .id_table = vendor##_id_table, \
34 .num_ports = 1, \ 34 .num_ports = nport, \
35}; 35};
36 36
37#define DEVICE(vendor, IDS) DEVICE_N(vendor, IDS, 1)
37 38
38/* ZIO Motherboard USB driver */ 39/* ZIO Motherboard USB driver */
39#define ZIO_IDS() \ 40#define ZIO_IDS() \