The "Neo" devices are never allowed to be bound to this driver, as they
are not in the valid list of PCI ids, so delete them from the driver as
the code in the probe function has no way to ever run.

Also delete the defines that are no longer used in relation to the Neo
devices, as they are not needed anymore.

Cc: Lidza Louina <lidza.lou...@gmail.com>
Cc: Mark Hounschell <ma...@compro.net>
Signed-off-by: Greg Kroah-Hartman <gre...@linuxfoundation.org>
---
 drivers/staging/dgnc/dgnc_driver.c | 62 --------------------------------------
 drivers/staging/dgnc/dgnc_pci.h    | 29 ------------------
 2 files changed, 91 deletions(-)

diff --git a/drivers/staging/dgnc/dgnc_driver.c 
b/drivers/staging/dgnc/dgnc_driver.c
index 801966282bdd..e27794b133b4 100644
--- a/drivers/staging/dgnc/dgnc_driver.c
+++ b/drivers/staging/dgnc/dgnc_driver.c
@@ -49,19 +49,6 @@ static const struct board_id dgnc_ids[] = {
        {       PCI_DEVICE_CLASSIC_4_422_PCI_NAME,      4,      0       },
        {       PCI_DEVICE_CLASSIC_8_PCI_NAME,          8,      0       },
        {       PCI_DEVICE_CLASSIC_8_422_PCI_NAME,      8,      0       },
-       {       PCI_DEVICE_NEO_4_PCI_NAME,              4,      0       },
-       {       PCI_DEVICE_NEO_8_PCI_NAME,              8,      0       },
-       {       PCI_DEVICE_NEO_2DB9_PCI_NAME,           2,      0       },
-       {       PCI_DEVICE_NEO_2DB9PRI_PCI_NAME,        2,      0       },
-       {       PCI_DEVICE_NEO_2RJ45_PCI_NAME,          2,      0       },
-       {       PCI_DEVICE_NEO_2RJ45PRI_PCI_NAME,       2,      0       },
-       {       PCI_DEVICE_NEO_1_422_PCI_NAME,          1,      0       },
-       {       PCI_DEVICE_NEO_1_422_485_PCI_NAME,      1,      0       },
-       {       PCI_DEVICE_NEO_2_422_485_PCI_NAME,      2,      0       },
-       {       PCI_DEVICE_NEO_EXPRESS_8_PCI_NAME,      8,      1       },
-       {       PCI_DEVICE_NEO_EXPRESS_4_PCI_NAME,      4,      1       },
-       {       PCI_DEVICE_NEO_EXPRESS_4RJ45_PCI_NAME,  4,      1       },
-       {       PCI_DEVICE_NEO_EXPRESS_8RJ45_PCI_NAME,  8,      1       },
        {       NULL,                                   0,      0       }
 };
 
@@ -173,55 +160,6 @@ static struct dgnc_board *dgnc_found_board(struct pci_dev 
*pdev, int id)
 
                break;
 
-       case PCI_DEVICE_NEO_4_DID:
-       case PCI_DEVICE_NEO_8_DID:
-       case PCI_DEVICE_NEO_2DB9_DID:
-       case PCI_DEVICE_NEO_2DB9PRI_DID:
-       case PCI_DEVICE_NEO_2RJ45_DID:
-       case PCI_DEVICE_NEO_2RJ45PRI_DID:
-       case PCI_DEVICE_NEO_1_422_DID:
-       case PCI_DEVICE_NEO_1_422_485_DID:
-       case PCI_DEVICE_NEO_2_422_485_DID:
-       case PCI_DEVICE_NEO_EXPRESS_8_DID:
-       case PCI_DEVICE_NEO_EXPRESS_4_DID:
-       case PCI_DEVICE_NEO_EXPRESS_4RJ45_DID:
-       case PCI_DEVICE_NEO_EXPRESS_8RJ45_DID:
-
-               /*
-                * This chip is set up 100% when we get to it.
-                * No need to enable global interrupts or anything.
-                */
-               if (brd->bd_flags & BD_IS_PCI_EXPRESS)
-                       brd->dpatype = T_NEO_EXPRESS | T_PCIBUS;
-               else
-                       brd->dpatype = T_NEO | T_PCIBUS;
-
-               brd->membase     = pci_resource_start(pdev, 0);
-               brd->membase_end = pci_resource_end(pdev, 0);
-
-               if (brd->membase & 1)
-                       brd->membase &= ~3;
-               else
-                       brd->membase &= ~15;
-
-               brd->bd_ops = &dgnc_neo_ops;
-
-               brd->bd_uart_offset = 0x200;
-               brd->bd_dividend = 921600;
-
-               rc = dgnc_do_remap(brd);
-
-               if (rc < 0)
-                       goto failed;
-
-               /* Read and store the dvid after remapping */
-               brd->dvid = readb(brd->re_map_membase + 0x8D);
-
-               /* Get and store the board VPD, if it exists */
-               brd->bd_ops->vpd(brd);
-
-               break;
-
        default:
                dev_err(&brd->pdev->dev,
                        "Didn't find any compatible Neo/Classic PCI boards.\n");
diff --git a/drivers/staging/dgnc/dgnc_pci.h b/drivers/staging/dgnc/dgnc_pci.h
index b9e642f3e8fd..33595fad66c5 100644
--- a/drivers/staging/dgnc/dgnc_pci.h
+++ b/drivers/staging/dgnc/dgnc_pci.h
@@ -16,40 +16,11 @@
 #define PCI_DEVICE_CLASSIC_8_DID               0x0029
 #define PCI_DEVICE_CLASSIC_4_422_DID           0x00D0
 #define PCI_DEVICE_CLASSIC_8_422_DID           0x00D1
-#define PCI_DEVICE_NEO_4_DID                   0x00B0
-#define PCI_DEVICE_NEO_8_DID                   0x00B1
-#define PCI_DEVICE_NEO_2DB9_DID                        0x00C8
-#define PCI_DEVICE_NEO_2DB9PRI_DID             0x00C9
-#define PCI_DEVICE_NEO_2RJ45_DID               0x00CA
-#define PCI_DEVICE_NEO_2RJ45PRI_DID            0x00CB
-#define PCI_DEVICE_NEO_1_422_DID               0x00CC
-#define PCI_DEVICE_NEO_1_422_485_DID           0x00CD
-#define PCI_DEVICE_NEO_2_422_485_DID           0x00CE
-#define PCI_DEVICE_NEO_EXPRESS_8_DID           0x00F0
-#define PCI_DEVICE_NEO_EXPRESS_4_DID           0x00F1
-#define PCI_DEVICE_NEO_EXPRESS_4RJ45_DID       0x00F2
-#define PCI_DEVICE_NEO_EXPRESS_8RJ45_DID       0x00F3
-#define PCI_DEVICE_NEO_EXPRESS_4_IBM_DID       0x00F4
 
 #define PCI_DEVICE_CLASSIC_4_PCI_NAME          "ClassicBoard 4 PCI"
 #define PCI_DEVICE_CLASSIC_8_PCI_NAME          "ClassicBoard 8 PCI"
 #define PCI_DEVICE_CLASSIC_4_422_PCI_NAME      "ClassicBoard 4 422 PCI"
 #define PCI_DEVICE_CLASSIC_8_422_PCI_NAME      "ClassicBoard 8 422 PCI"
-#define PCI_DEVICE_NEO_4_PCI_NAME              "Neo 4 PCI"
-#define PCI_DEVICE_NEO_8_PCI_NAME              "Neo 8 PCI"
-#define PCI_DEVICE_NEO_2DB9_PCI_NAME           "Neo 2 - DB9 Universal PCI"
-#define PCI_DEVICE_NEO_2DB9PRI_PCI_NAME                "Neo 2 - DB9 Universal 
PCI - Powered Ring Indicator"
-#define PCI_DEVICE_NEO_2RJ45_PCI_NAME          "Neo 2 - RJ45 Universal PCI"
-#define PCI_DEVICE_NEO_2RJ45PRI_PCI_NAME       "Neo 2 - RJ45 Universal PCI - 
Powered Ring Indicator"
-#define PCI_DEVICE_NEO_1_422_PCI_NAME          "Neo 1 422 PCI"
-#define PCI_DEVICE_NEO_1_422_485_PCI_NAME      "Neo 1 422/485 PCI"
-#define PCI_DEVICE_NEO_2_422_485_PCI_NAME      "Neo 2 422/485 PCI"
-
-#define PCI_DEVICE_NEO_EXPRESS_8_PCI_NAME      "Neo 8 PCI Express"
-#define PCI_DEVICE_NEO_EXPRESS_4_PCI_NAME      "Neo 4 PCI Express"
-#define PCI_DEVICE_NEO_EXPRESS_4RJ45_PCI_NAME  "Neo 4 PCI Express RJ45"
-#define PCI_DEVICE_NEO_EXPRESS_8RJ45_PCI_NAME  "Neo 8 PCI Express RJ45"
-#define PCI_DEVICE_NEO_EXPRESS_4_IBM_PCI_NAME  "Neo 4 PCI Express IBM"
 
 /* Size of memory and I/O for PCI (4 K) */
 #define PCI_RAM_SIZE                           0x1000
-- 
2.15.1

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to