diff options
Diffstat (limited to 'drivers/char/synclink_gt.c')
-rw-r--r-- | drivers/char/synclink_gt.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/char/synclink_gt.c b/drivers/char/synclink_gt.c index 41eab9831ad5..4e35d4181224 100644 --- a/drivers/char/synclink_gt.c +++ b/drivers/char/synclink_gt.c | |||
@@ -101,6 +101,7 @@ MODULE_LICENSE("GPL"); | |||
101 | 101 | ||
102 | static struct pci_device_id pci_table[] = { | 102 | static struct pci_device_id pci_table[] = { |
103 | {PCI_VENDOR_ID_MICROGATE, SYNCLINK_GT_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID,}, | 103 | {PCI_VENDOR_ID_MICROGATE, SYNCLINK_GT_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID,}, |
104 | {PCI_VENDOR_ID_MICROGATE, SYNCLINK_GT2_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID,}, | ||
104 | {PCI_VENDOR_ID_MICROGATE, SYNCLINK_GT4_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID,}, | 105 | {PCI_VENDOR_ID_MICROGATE, SYNCLINK_GT4_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID,}, |
105 | {PCI_VENDOR_ID_MICROGATE, SYNCLINK_AC_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID,}, | 106 | {PCI_VENDOR_ID_MICROGATE, SYNCLINK_AC_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID,}, |
106 | {0,}, /* terminate list */ | 107 | {0,}, /* terminate list */ |
@@ -3277,6 +3278,9 @@ static void add_device(struct slgt_info *info) | |||
3277 | case SYNCLINK_GT_DEVICE_ID: | 3278 | case SYNCLINK_GT_DEVICE_ID: |
3278 | devstr = "GT"; | 3279 | devstr = "GT"; |
3279 | break; | 3280 | break; |
3281 | case SYNCLINK_GT2_DEVICE_ID: | ||
3282 | devstr = "GT2"; | ||
3283 | break; | ||
3280 | case SYNCLINK_GT4_DEVICE_ID: | 3284 | case SYNCLINK_GT4_DEVICE_ID: |
3281 | devstr = "GT4"; | 3285 | devstr = "GT4"; |
3282 | break; | 3286 | break; |
@@ -3354,7 +3358,9 @@ static void device_init(int adapter_num, struct pci_dev *pdev) | |||
3354 | int i; | 3358 | int i; |
3355 | int port_count = 1; | 3359 | int port_count = 1; |
3356 | 3360 | ||
3357 | if (pdev->device == SYNCLINK_GT4_DEVICE_ID) | 3361 | if (pdev->device == SYNCLINK_GT2_DEVICE_ID) |
3362 | port_count = 2; | ||
3363 | else if (pdev->device == SYNCLINK_GT4_DEVICE_ID) | ||
3358 | port_count = 4; | 3364 | port_count = 4; |
3359 | 3365 | ||
3360 | /* allocate device instances for all ports */ | 3366 | /* allocate device instances for all ports */ |