summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-05-26 15:45:31 +0000
committermarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-05-26 15:45:31 +0000
commit2e81c0755ce380ca76dc5045a872c9fc432d99d1 (patch)
tree2cee17934d43ab1c708c54a1c56a488ea86aa73e
parent528f9a5aa0de1d53e0a367655a08882661923413 (diff)
Zaptel fixes for 2.6
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@402 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-xtor2-hw.h2
-rwxr-xr-xtor2.c4
-rwxr-xr-xwcfxo.c11
-rwxr-xr-xwcfxs.c9
-rwxr-xr-xwct1xxp.c9
-rwxr-xr-xwct4xxp.c4
-rwxr-xr-xwctdm.c9
7 files changed, 41 insertions, 7 deletions
diff --git a/tor2-hw.h b/tor2-hw.h
index a0f95ae..c930e10 100755
--- a/tor2-hw.h
+++ b/tor2-hw.h
@@ -109,7 +109,7 @@
#define PCI_VENDOR_ID_PLX 0x10b5
#ifdef __KERNEL__
-static struct pci_device_id tor2_pci_ids[] __devinitdata =
+static struct pci_device_id tor2_pci_ids[] =
#else
#define PCI_ANY_ID -1
static struct tor2_pci_id {
diff --git a/tor2.c b/tor2.c
index fd95998..0311f55 100755
--- a/tor2.c
+++ b/tor2.c
@@ -615,7 +615,11 @@ static void __devexit tor2_remove(struct pci_dev *pdev)
static struct pci_driver tor2_driver = {
name: "tormenta2",
probe: tor2_probe,
+#ifdef LINUX26
+ remove: __devexit_p(tor2_remove),
+#else
remove: tor2_remove,
+#endif
id_table: tor2_pci_ids,
};
diff --git a/wcfxo.c b/wcfxo.c
index 4956a51..3c3e829 100755
--- a/wcfxo.c
+++ b/wcfxo.c
@@ -972,18 +972,23 @@ static void __devexit wcfxo_remove_one(struct pci_dev *pdev)
}
}
-static struct pci_device_id wcfxo_pci_tbl[] __devinitdata = {
+static struct pci_device_id wcfxo_pci_tbl[] = {
{ 0xe159, 0x0001, 0x8085, PCI_ANY_ID, 0, 0, (unsigned long) &wcx101p },
{ 0xe159, 0x0001, 0x8086, PCI_ANY_ID, 0, 0, (unsigned long) &generic },
{ 0x1057, 0x5608, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wcx100p },
+ { 0 }
};
+MODULE_DEVICE_TABLE (pci, wcfxo_pci_tbl);
+
static struct pci_driver wcfxo_driver = {
name: "wcfxo",
probe: wcfxo_init_one,
+#ifdef LINUX26
+ remove: __devexit_p(wcfxo_remove_one),
+#else
remove: wcfxo_remove_one,
- suspend: NULL,
- resume: NULL,
+#endif
id_table: wcfxo_pci_tbl,
};
diff --git a/wcfxs.c b/wcfxs.c
index e0cbfaf..907ebcb 100755
--- a/wcfxs.c
+++ b/wcfxs.c
@@ -1901,16 +1901,23 @@ static void __devexit wcfxs_remove_one(struct pci_dev *pdev)
}
}
-static struct pci_device_id wcfxs_pci_tbl[] __devinitdata = {
+static struct pci_device_id wcfxs_pci_tbl[] = {
{ 0xe159, 0x0001, 0xa159, PCI_ANY_ID, 0, 0, (unsigned long) &wcfxs },
{ 0xe159, 0x0001, 0xe159, PCI_ANY_ID, 0, 0, (unsigned long) &wcfxs },
{ 0xe159, 0x0001, 0xb100, PCI_ANY_ID, 0, 0, (unsigned long) &wcfxse },
+ { 0 }
};
+MODULE_DEVICE_TABLE(pci, wcfxs_pci_tbl);
+
static struct pci_driver wcfxs_driver = {
name: "wcfxs",
probe: wcfxs_init_one,
+#ifdef LINUX26
+ remove: __devexit_p(wcfxs_remove_one),
+#else
remove: wcfxs_remove_one,
+#endif
suspend: NULL,
resume: NULL,
id_table: wcfxs_pci_tbl,
diff --git a/wct1xxp.c b/wct1xxp.c
index e5d9b06..0c9dbbb 100755
--- a/wct1xxp.c
+++ b/wct1xxp.c
@@ -1364,14 +1364,21 @@ static void __devexit t1xxp_remove_one(struct pci_dev *pdev)
}
}
-static struct pci_device_id t1xxp_pci_tbl[] __devinitdata = {
+static struct pci_device_id t1xxp_pci_tbl[] = {
{ 0xe159, 0x0001, 0x6159, PCI_ANY_ID, 0, 0, (unsigned long) "Digium Wildcard T100P T1/PRI or E100P E1/PRA Board" },
+ { 0 }
};
+MODULE_DEVICE_TABLE(pci,t1xxp_pci_tbl);
+
static struct pci_driver t1xxp_driver = {
name: "t1xxp",
probe: t1xxp_init_one,
+#ifdef LINUX26
+ remove: __devexit_p(t1xxp_remove_one),
+#else
remove: t1xxp_remove_one,
+#endif
suspend: NULL,
resume: NULL,
id_table: t1xxp_pci_tbl,
diff --git a/wct4xxp.c b/wct4xxp.c
index 70bb126..527df1f 100755
--- a/wct4xxp.c
+++ b/wct4xxp.c
@@ -1680,7 +1680,11 @@ static struct pci_device_id t4_pci_tbl[] __devinitdata =
static struct pci_driver t4_driver = {
name: "t4xxp",
probe: t4_init_one,
+#ifdef LINUX26
+ remove: __devexit_p(t4_remove_one),
+#else
remove: t4_remove_one,
+#endif
suspend: NULL,
resume: NULL,
id_table: t4_pci_tbl,
diff --git a/wctdm.c b/wctdm.c
index e0cbfaf..907ebcb 100755
--- a/wctdm.c
+++ b/wctdm.c
@@ -1901,16 +1901,23 @@ static void __devexit wcfxs_remove_one(struct pci_dev *pdev)
}
}
-static struct pci_device_id wcfxs_pci_tbl[] __devinitdata = {
+static struct pci_device_id wcfxs_pci_tbl[] = {
{ 0xe159, 0x0001, 0xa159, PCI_ANY_ID, 0, 0, (unsigned long) &wcfxs },
{ 0xe159, 0x0001, 0xe159, PCI_ANY_ID, 0, 0, (unsigned long) &wcfxs },
{ 0xe159, 0x0001, 0xb100, PCI_ANY_ID, 0, 0, (unsigned long) &wcfxse },
+ { 0 }
};
+MODULE_DEVICE_TABLE(pci, wcfxs_pci_tbl);
+
static struct pci_driver wcfxs_driver = {
name: "wcfxs",
probe: wcfxs_init_one,
+#ifdef LINUX26
+ remove: __devexit_p(wcfxs_remove_one),
+#else
remove: wcfxs_remove_one,
+#endif
suspend: NULL,
resume: NULL,
id_table: wcfxs_pci_tbl,