diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-03-20 14:26:51 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-05-10 04:23:14 -0400 |
commit | 317b6d63000b3cc48c43d582d76063500e531a6c (patch) | |
tree | 5b2ff9482257a8b4f4dc47156090e4c760c2b9bd | |
parent | b1577190e7cd259b5fc4846305f31cba9633f31e (diff) |
pcmcia: dev_node removal (write-only drivers)
dev_node_t was only used to transport some minor/major numbers
from the PCMCIA device drivers to deprecated userspace helpers.
However, only a few drivers made use of it, and the userspace
helpers are deprecated anyways. Therefore, get rid of dev_node_t .
As a first step, remove any usage of dev_node_t from drivers which
only wrote to this typedef/struct, but did not make use of it.
CC: linux-bluetooth@vger.kernel.org
CC: Harald Welte <laforge@gnumonks.org>
CC: linux-mtd@lists.infradead.org
CC: linux-wireless@vger.kernel.org
CC: netdev@vger.kernel.org
CC: linux-serial@vger.kernel.org
CC: alsa-devel@alsa-project.org
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
-rw-r--r-- | drivers/bluetooth/bluecard_cs.c | 4 | ||||
-rw-r--r-- | drivers/bluetooth/bt3c_cs.c | 4 | ||||
-rw-r--r-- | drivers/bluetooth/btuart_cs.c | 4 | ||||
-rw-r--r-- | drivers/bluetooth/dtl1_cs.c | 4 | ||||
-rw-r--r-- | drivers/char/pcmcia/cm4040_cs.c | 5 | ||||
-rw-r--r-- | drivers/mtd/maps/pcmciamtd.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/atmel_cs.c | 42 | ||||
-rw-r--r-- | drivers/net/wireless/hostap/hostap_cs.c | 9 | ||||
-rw-r--r-- | drivers/parport/parport_cs.c | 5 | ||||
-rw-r--r-- | drivers/scsi/pcmcia/aha152x_stub.c | 3 | ||||
-rw-r--r-- | drivers/scsi/pcmcia/fdomain_stub.c | 3 | ||||
-rw-r--r-- | drivers/scsi/pcmcia/nsp_cs.c | 3 | ||||
-rw-r--r-- | drivers/scsi/pcmcia/nsp_cs.h | 1 | ||||
-rw-r--r-- | drivers/scsi/pcmcia/qlogic_stub.c | 3 | ||||
-rw-r--r-- | drivers/scsi/pcmcia/sym53c500_cs.c | 3 | ||||
-rw-r--r-- | drivers/serial/serial_cs.c | 9 | ||||
-rw-r--r-- | drivers/telephony/ixj_pcmcia.c | 3 | ||||
-rw-r--r-- | sound/pcmcia/pdaudiocf/pdaudiocf.c | 1 | ||||
-rw-r--r-- | sound/pcmcia/pdaudiocf/pdaudiocf.h | 1 | ||||
-rw-r--r-- | sound/pcmcia/vx/vxpocket.c | 2 | ||||
-rw-r--r-- | sound/pcmcia/vx/vxpocket.h | 1 |
21 files changed, 2 insertions, 111 deletions
diff --git a/drivers/bluetooth/bluecard_cs.c b/drivers/bluetooth/bluecard_cs.c index a34653db07bc..6f907ebed2d5 100644 --- a/drivers/bluetooth/bluecard_cs.c +++ b/drivers/bluetooth/bluecard_cs.c | |||
@@ -65,7 +65,6 @@ MODULE_LICENSE("GPL"); | |||
65 | 65 | ||
66 | typedef struct bluecard_info_t { | 66 | typedef struct bluecard_info_t { |
67 | struct pcmcia_device *p_dev; | 67 | struct pcmcia_device *p_dev; |
68 | dev_node_t node; | ||
69 | 68 | ||
70 | struct hci_dev *hdev; | 69 | struct hci_dev *hdev; |
71 | 70 | ||
@@ -916,9 +915,6 @@ static int bluecard_config(struct pcmcia_device *link) | |||
916 | if (bluecard_open(info) != 0) | 915 | if (bluecard_open(info) != 0) |
917 | goto failed; | 916 | goto failed; |
918 | 917 | ||
919 | strcpy(info->node.dev_name, info->hdev->name); | ||
920 | link->dev_node = &info->node; | ||
921 | |||
922 | return 0; | 918 | return 0; |
923 | 919 | ||
924 | failed: | 920 | failed: |
diff --git a/drivers/bluetooth/bt3c_cs.c b/drivers/bluetooth/bt3c_cs.c index 1ad9694d4450..21e05fdc9121 100644 --- a/drivers/bluetooth/bt3c_cs.c +++ b/drivers/bluetooth/bt3c_cs.c | |||
@@ -72,7 +72,6 @@ MODULE_FIRMWARE("BT3CPCC.bin"); | |||
72 | 72 | ||
73 | typedef struct bt3c_info_t { | 73 | typedef struct bt3c_info_t { |
74 | struct pcmcia_device *p_dev; | 74 | struct pcmcia_device *p_dev; |
75 | dev_node_t node; | ||
76 | 75 | ||
77 | struct hci_dev *hdev; | 76 | struct hci_dev *hdev; |
78 | 77 | ||
@@ -751,9 +750,6 @@ found_port: | |||
751 | if (bt3c_open(info) != 0) | 750 | if (bt3c_open(info) != 0) |
752 | goto failed; | 751 | goto failed; |
753 | 752 | ||
754 | strcpy(info->node.dev_name, info->hdev->name); | ||
755 | link->dev_node = &info->node; | ||
756 | |||
757 | return 0; | 753 | return 0; |
758 | 754 | ||
759 | failed: | 755 | failed: |
diff --git a/drivers/bluetooth/btuart_cs.c b/drivers/bluetooth/btuart_cs.c index 1073d660d625..4ed7288f99db 100644 --- a/drivers/bluetooth/btuart_cs.c +++ b/drivers/bluetooth/btuart_cs.c | |||
@@ -67,7 +67,6 @@ MODULE_LICENSE("GPL"); | |||
67 | 67 | ||
68 | typedef struct btuart_info_t { | 68 | typedef struct btuart_info_t { |
69 | struct pcmcia_device *p_dev; | 69 | struct pcmcia_device *p_dev; |
70 | dev_node_t node; | ||
71 | 70 | ||
72 | struct hci_dev *hdev; | 71 | struct hci_dev *hdev; |
73 | 72 | ||
@@ -680,9 +679,6 @@ found_port: | |||
680 | if (btuart_open(info) != 0) | 679 | if (btuart_open(info) != 0) |
681 | goto failed; | 680 | goto failed; |
682 | 681 | ||
683 | strcpy(info->node.dev_name, info->hdev->name); | ||
684 | link->dev_node = &info->node; | ||
685 | |||
686 | return 0; | 682 | return 0; |
687 | 683 | ||
688 | failed: | 684 | failed: |
diff --git a/drivers/bluetooth/dtl1_cs.c b/drivers/bluetooth/dtl1_cs.c index 3d72afddabb3..ef044d55cb25 100644 --- a/drivers/bluetooth/dtl1_cs.c +++ b/drivers/bluetooth/dtl1_cs.c | |||
@@ -67,7 +67,6 @@ MODULE_LICENSE("GPL"); | |||
67 | 67 | ||
68 | typedef struct dtl1_info_t { | 68 | typedef struct dtl1_info_t { |
69 | struct pcmcia_device *p_dev; | 69 | struct pcmcia_device *p_dev; |
70 | dev_node_t node; | ||
71 | 70 | ||
72 | struct hci_dev *hdev; | 71 | struct hci_dev *hdev; |
73 | 72 | ||
@@ -629,9 +628,6 @@ static int dtl1_config(struct pcmcia_device *link) | |||
629 | if (dtl1_open(info) != 0) | 628 | if (dtl1_open(info) != 0) |
630 | goto failed; | 629 | goto failed; |
631 | 630 | ||
632 | strcpy(info->node.dev_name, info->hdev->name); | ||
633 | link->dev_node = &info->node; | ||
634 | |||
635 | return 0; | 631 | return 0; |
636 | 632 | ||
637 | failed: | 633 | failed: |
diff --git a/drivers/char/pcmcia/cm4040_cs.c b/drivers/char/pcmcia/cm4040_cs.c index a6a70e476bea..c0775c844e08 100644 --- a/drivers/char/pcmcia/cm4040_cs.c +++ b/drivers/char/pcmcia/cm4040_cs.c | |||
@@ -72,7 +72,6 @@ static struct class *cmx_class; | |||
72 | 72 | ||
73 | struct reader_dev { | 73 | struct reader_dev { |
74 | struct pcmcia_device *p_dev; | 74 | struct pcmcia_device *p_dev; |
75 | dev_node_t node; | ||
76 | wait_queue_head_t devq; | 75 | wait_queue_head_t devq; |
77 | wait_queue_head_t poll_wait; | 76 | wait_queue_head_t poll_wait; |
78 | wait_queue_head_t read_wait; | 77 | wait_queue_head_t read_wait; |
@@ -568,10 +567,6 @@ static int reader_config(struct pcmcia_device *link, int devno) | |||
568 | } | 567 | } |
569 | 568 | ||
570 | dev = link->priv; | 569 | dev = link->priv; |
571 | sprintf(dev->node.dev_name, DEVICE_NAME "%d", devno); | ||
572 | dev->node.major = major; | ||
573 | dev->node.minor = devno; | ||
574 | dev->node.next = &dev->node; | ||
575 | 570 | ||
576 | DEBUGP(2, dev, "device " DEVICE_NAME "%d at 0x%.4x-0x%.4x\n", devno, | 571 | DEBUGP(2, dev, "device " DEVICE_NAME "%d at 0x%.4x-0x%.4x\n", devno, |
577 | link->io.BasePort1, link->io.BasePort1+link->io.NumPorts1); | 572 | link->io.BasePort1, link->io.BasePort1+link->io.NumPorts1); |
diff --git a/drivers/mtd/maps/pcmciamtd.c b/drivers/mtd/maps/pcmciamtd.c index 689d6a79ffc0..87b2b8ff331e 100644 --- a/drivers/mtd/maps/pcmciamtd.c +++ b/drivers/mtd/maps/pcmciamtd.c | |||
@@ -52,7 +52,6 @@ static const int debug = 0; | |||
52 | 52 | ||
53 | struct pcmciamtd_dev { | 53 | struct pcmciamtd_dev { |
54 | struct pcmcia_device *p_dev; | 54 | struct pcmcia_device *p_dev; |
55 | dev_node_t node; /* device node */ | ||
56 | caddr_t win_base; /* ioremapped address of PCMCIA window */ | 55 | caddr_t win_base; /* ioremapped address of PCMCIA window */ |
57 | unsigned int win_size; /* size of window */ | 56 | unsigned int win_size; /* size of window */ |
58 | unsigned int offset; /* offset into card the window currently points at */ | 57 | unsigned int offset; /* offset into card the window currently points at */ |
@@ -647,9 +646,7 @@ static int pcmciamtd_config(struct pcmcia_device *link) | |||
647 | pcmciamtd_release(link); | 646 | pcmciamtd_release(link); |
648 | return -ENODEV; | 647 | return -ENODEV; |
649 | } | 648 | } |
650 | snprintf(dev->node.dev_name, sizeof(dev->node.dev_name), "mtd%d", mtd->index); | ||
651 | info("mtd%d: %s", mtd->index, mtd->name); | 649 | info("mtd%d: %s", mtd->index, mtd->name); |
652 | link->dev_node = &dev->node; | ||
653 | return 0; | 650 | return 0; |
654 | 651 | ||
655 | failed: | 652 | failed: |
diff --git a/drivers/net/wireless/atmel_cs.c b/drivers/net/wireless/atmel_cs.c index 759cdc419326..c2746fc7f2be 100644 --- a/drivers/net/wireless/atmel_cs.c +++ b/drivers/net/wireless/atmel_cs.c | |||
@@ -85,41 +85,7 @@ static void atmel_release(struct pcmcia_device *link); | |||
85 | 85 | ||
86 | static void atmel_detach(struct pcmcia_device *p_dev); | 86 | static void atmel_detach(struct pcmcia_device *p_dev); |
87 | 87 | ||
88 | /* | ||
89 | You'll also need to prototype all the functions that will actually | ||
90 | be used to talk to your device. See 'pcmem_cs' for a good example | ||
91 | of a fully self-sufficient driver; the other drivers rely more or | ||
92 | less on other parts of the kernel. | ||
93 | */ | ||
94 | |||
95 | /* | ||
96 | A linked list of "instances" of the atmelnet device. Each actual | ||
97 | PCMCIA card corresponds to one device instance, and is described | ||
98 | by one struct pcmcia_device structure (defined in ds.h). | ||
99 | |||
100 | You may not want to use a linked list for this -- for example, the | ||
101 | memory card driver uses an array of struct pcmcia_device pointers, where minor | ||
102 | device numbers are used to derive the corresponding array index. | ||
103 | */ | ||
104 | |||
105 | /* | ||
106 | A driver needs to provide a dev_node_t structure for each device | ||
107 | on a card. In some cases, there is only one device per card (for | ||
108 | example, ethernet cards, modems). In other cases, there may be | ||
109 | many actual or logical devices (SCSI adapters, memory cards with | ||
110 | multiple partitions). The dev_node_t structures need to be kept | ||
111 | in a linked list starting at the 'dev' field of a struct pcmcia_device | ||
112 | structure. We allocate them in the card's private data structure, | ||
113 | because they generally shouldn't be allocated dynamically. | ||
114 | |||
115 | In this case, we also provide a flag to indicate if a device is | ||
116 | "stopped" due to a power management event, or card ejection. The | ||
117 | device IO routines can use a flag like this to throttle IO to a | ||
118 | card that is not ready to accept it. | ||
119 | */ | ||
120 | |||
121 | typedef struct local_info_t { | 88 | typedef struct local_info_t { |
122 | dev_node_t node; | ||
123 | struct net_device *eth_dev; | 89 | struct net_device *eth_dev; |
124 | } local_info_t; | 90 | } local_info_t; |
125 | 91 | ||
@@ -297,14 +263,6 @@ static int atmel_config(struct pcmcia_device *link) | |||
297 | goto failed; | 263 | goto failed; |
298 | 264 | ||
299 | 265 | ||
300 | /* | ||
301 | At this point, the dev_node_t structure(s) need to be | ||
302 | initialized and arranged in a linked list at link->dev_node. | ||
303 | */ | ||
304 | strcpy(dev->node.dev_name, ((local_info_t*)link->priv)->eth_dev->name ); | ||
305 | dev->node.major = dev->node.minor = 0; | ||
306 | link->dev_node = &dev->node; | ||
307 | |||
308 | return 0; | 266 | return 0; |
309 | 267 | ||
310 | failed: | 268 | failed: |
diff --git a/drivers/net/wireless/hostap/hostap_cs.c b/drivers/net/wireless/hostap/hostap_cs.c index 5e2efbb03675..db72461c486b 100644 --- a/drivers/net/wireless/hostap/hostap_cs.c +++ b/drivers/net/wireless/hostap/hostap_cs.c | |||
@@ -39,7 +39,6 @@ MODULE_PARM_DESC(ignore_cis_vcc, "Ignore broken CIS VCC entry"); | |||
39 | 39 | ||
40 | /* struct local_info::hw_priv */ | 40 | /* struct local_info::hw_priv */ |
41 | struct hostap_cs_priv { | 41 | struct hostap_cs_priv { |
42 | dev_node_t node; | ||
43 | struct pcmcia_device *link; | 42 | struct pcmcia_device *link; |
44 | int sandisk_connectplus; | 43 | int sandisk_connectplus; |
45 | }; | 44 | }; |
@@ -625,8 +624,6 @@ static int prism2_config(struct pcmcia_device *link) | |||
625 | local = iface->local; | 624 | local = iface->local; |
626 | local->hw_priv = hw_priv; | 625 | local->hw_priv = hw_priv; |
627 | hw_priv->link = link; | 626 | hw_priv->link = link; |
628 | strcpy(hw_priv->node.dev_name, dev->name); | ||
629 | link->dev_node = &hw_priv->node; | ||
630 | 627 | ||
631 | ret = pcmcia_request_irq(link, prism2_interrupt); | 628 | ret = pcmcia_request_irq(link, prism2_interrupt); |
632 | if (ret) | 629 | if (ret) |
@@ -665,11 +662,9 @@ static int prism2_config(struct pcmcia_device *link) | |||
665 | sandisk_enable_wireless(dev); | 662 | sandisk_enable_wireless(dev); |
666 | 663 | ||
667 | ret = prism2_hw_config(dev, 1); | 664 | ret = prism2_hw_config(dev, 1); |
668 | if (!ret) { | 665 | if (!ret) |
669 | ret = hostap_hw_ready(dev); | 666 | ret = hostap_hw_ready(dev); |
670 | if (ret == 0 && local->ddev) | 667 | |
671 | strcpy(hw_priv->node.dev_name, local->ddev->name); | ||
672 | } | ||
673 | return ret; | 668 | return ret; |
674 | 669 | ||
675 | failed: | 670 | failed: |
diff --git a/drivers/parport/parport_cs.c b/drivers/parport/parport_cs.c index 80c9052bf3cd..fd8cfe95f0a3 100644 --- a/drivers/parport/parport_cs.c +++ b/drivers/parport/parport_cs.c | |||
@@ -75,7 +75,6 @@ INT_MODULE_PARM(epp_mode, 1); | |||
75 | typedef struct parport_info_t { | 75 | typedef struct parport_info_t { |
76 | struct pcmcia_device *p_dev; | 76 | struct pcmcia_device *p_dev; |
77 | int ndev; | 77 | int ndev; |
78 | dev_node_t node; | ||
79 | struct parport *port; | 78 | struct parport *port; |
80 | } parport_info_t; | 79 | } parport_info_t; |
81 | 80 | ||
@@ -193,11 +192,7 @@ static int parport_config(struct pcmcia_device *link) | |||
193 | if (epp_mode) | 192 | if (epp_mode) |
194 | p->modes |= PARPORT_MODE_TRISTATE | PARPORT_MODE_EPP; | 193 | p->modes |= PARPORT_MODE_TRISTATE | PARPORT_MODE_EPP; |
195 | info->ndev = 1; | 194 | info->ndev = 1; |
196 | info->node.major = LP_MAJOR; | ||
197 | info->node.minor = p->number; | ||
198 | info->port = p; | 195 | info->port = p; |
199 | strcpy(info->node.dev_name, p->name); | ||
200 | link->dev_node = &info->node; | ||
201 | 196 | ||
202 | return 0; | 197 | return 0; |
203 | 198 | ||
diff --git a/drivers/scsi/pcmcia/aha152x_stub.c b/drivers/scsi/pcmcia/aha152x_stub.c index c1de4ba1f0a5..9d70aef99227 100644 --- a/drivers/scsi/pcmcia/aha152x_stub.c +++ b/drivers/scsi/pcmcia/aha152x_stub.c | |||
@@ -80,7 +80,6 @@ MODULE_LICENSE("Dual MPL/GPL"); | |||
80 | 80 | ||
81 | typedef struct scsi_info_t { | 81 | typedef struct scsi_info_t { |
82 | struct pcmcia_device *p_dev; | 82 | struct pcmcia_device *p_dev; |
83 | dev_node_t node; | ||
84 | struct Scsi_Host *host; | 83 | struct Scsi_Host *host; |
85 | } scsi_info_t; | 84 | } scsi_info_t; |
86 | 85 | ||
@@ -185,8 +184,6 @@ static int aha152x_config_cs(struct pcmcia_device *link) | |||
185 | goto failed; | 184 | goto failed; |
186 | } | 185 | } |
187 | 186 | ||
188 | sprintf(info->node.dev_name, "scsi%d", host->host_no); | ||
189 | link->dev_node = &info->node; | ||
190 | info->host = host; | 187 | info->host = host; |
191 | 188 | ||
192 | return 0; | 189 | return 0; |
diff --git a/drivers/scsi/pcmcia/fdomain_stub.c b/drivers/scsi/pcmcia/fdomain_stub.c index 8cb6d71f0204..21b141151dfc 100644 --- a/drivers/scsi/pcmcia/fdomain_stub.c +++ b/drivers/scsi/pcmcia/fdomain_stub.c | |||
@@ -63,7 +63,6 @@ MODULE_LICENSE("Dual MPL/GPL"); | |||
63 | 63 | ||
64 | typedef struct scsi_info_t { | 64 | typedef struct scsi_info_t { |
65 | struct pcmcia_device *p_dev; | 65 | struct pcmcia_device *p_dev; |
66 | dev_node_t node; | ||
67 | struct Scsi_Host *host; | 66 | struct Scsi_Host *host; |
68 | } scsi_info_t; | 67 | } scsi_info_t; |
69 | 68 | ||
@@ -155,8 +154,6 @@ static int fdomain_config(struct pcmcia_device *link) | |||
155 | goto failed; | 154 | goto failed; |
156 | scsi_scan_host(host); | 155 | scsi_scan_host(host); |
157 | 156 | ||
158 | sprintf(info->node.dev_name, "scsi%d", host->host_no); | ||
159 | link->dev_node = &info->node; | ||
160 | info->host = host; | 157 | info->host = host; |
161 | 158 | ||
162 | return 0; | 159 | return 0; |
diff --git a/drivers/scsi/pcmcia/nsp_cs.c b/drivers/scsi/pcmcia/nsp_cs.c index 24c78ed98f07..0f0e112c3f8e 100644 --- a/drivers/scsi/pcmcia/nsp_cs.c +++ b/drivers/scsi/pcmcia/nsp_cs.c | |||
@@ -1754,8 +1754,6 @@ static int nsp_cs_config(struct pcmcia_device *link) | |||
1754 | 1754 | ||
1755 | scsi_scan_host(host); | 1755 | scsi_scan_host(host); |
1756 | 1756 | ||
1757 | snprintf(info->node.dev_name, sizeof(info->node.dev_name), "scsi%d", host->host_no); | ||
1758 | link->dev_node = &info->node; | ||
1759 | info->host = host; | 1757 | info->host = host; |
1760 | 1758 | ||
1761 | /* Finally, report what we've done */ | 1759 | /* Finally, report what we've done */ |
@@ -1813,7 +1811,6 @@ static void nsp_cs_release(struct pcmcia_device *link) | |||
1813 | if (info->host != NULL) { | 1811 | if (info->host != NULL) { |
1814 | scsi_remove_host(info->host); | 1812 | scsi_remove_host(info->host); |
1815 | } | 1813 | } |
1816 | link->dev_node = NULL; | ||
1817 | 1814 | ||
1818 | if (link->win) { | 1815 | if (link->win) { |
1819 | if (data != NULL) { | 1816 | if (data != NULL) { |
diff --git a/drivers/scsi/pcmcia/nsp_cs.h b/drivers/scsi/pcmcia/nsp_cs.h index 8c61a4fe1db9..d68c9f267c5e 100644 --- a/drivers/scsi/pcmcia/nsp_cs.h +++ b/drivers/scsi/pcmcia/nsp_cs.h | |||
@@ -224,7 +224,6 @@ | |||
224 | typedef struct scsi_info_t { | 224 | typedef struct scsi_info_t { |
225 | struct pcmcia_device *p_dev; | 225 | struct pcmcia_device *p_dev; |
226 | struct Scsi_Host *host; | 226 | struct Scsi_Host *host; |
227 | dev_node_t node; | ||
228 | int stop; | 227 | int stop; |
229 | } scsi_info_t; | 228 | } scsi_info_t; |
230 | 229 | ||
diff --git a/drivers/scsi/pcmcia/qlogic_stub.c b/drivers/scsi/pcmcia/qlogic_stub.c index c3a4428dbcff..f0fc6baed9fc 100644 --- a/drivers/scsi/pcmcia/qlogic_stub.c +++ b/drivers/scsi/pcmcia/qlogic_stub.c | |||
@@ -82,7 +82,6 @@ static struct scsi_host_template qlogicfas_driver_template = { | |||
82 | 82 | ||
83 | typedef struct scsi_info_t { | 83 | typedef struct scsi_info_t { |
84 | struct pcmcia_device *p_dev; | 84 | struct pcmcia_device *p_dev; |
85 | dev_node_t node; | ||
86 | struct Scsi_Host *host; | 85 | struct Scsi_Host *host; |
87 | unsigned short manf_id; | 86 | unsigned short manf_id; |
88 | } scsi_info_t; | 87 | } scsi_info_t; |
@@ -235,8 +234,6 @@ static int qlogic_config(struct pcmcia_device * link) | |||
235 | goto failed; | 234 | goto failed; |
236 | } | 235 | } |
237 | 236 | ||
238 | sprintf(info->node.dev_name, "scsi%d", host->host_no); | ||
239 | link->dev_node = &info->node; | ||
240 | info->host = host; | 237 | info->host = host; |
241 | 238 | ||
242 | return 0; | 239 | return 0; |
diff --git a/drivers/scsi/pcmcia/sym53c500_cs.c b/drivers/scsi/pcmcia/sym53c500_cs.c index 6eacf4ca200f..a51164171179 100644 --- a/drivers/scsi/pcmcia/sym53c500_cs.c +++ b/drivers/scsi/pcmcia/sym53c500_cs.c | |||
@@ -191,7 +191,6 @@ | |||
191 | 191 | ||
192 | struct scsi_info_t { | 192 | struct scsi_info_t { |
193 | struct pcmcia_device *p_dev; | 193 | struct pcmcia_device *p_dev; |
194 | dev_node_t node; | ||
195 | struct Scsi_Host *host; | 194 | struct Scsi_Host *host; |
196 | unsigned short manf_id; | 195 | unsigned short manf_id; |
197 | }; | 196 | }; |
@@ -792,8 +791,6 @@ SYM53C500_config(struct pcmcia_device *link) | |||
792 | */ | 791 | */ |
793 | data->fast_pio = USE_FAST_PIO; | 792 | data->fast_pio = USE_FAST_PIO; |
794 | 793 | ||
795 | sprintf(info->node.dev_name, "scsi%d", host->host_no); | ||
796 | link->dev_node = &info->node; | ||
797 | info->host = host; | 794 | info->host = host; |
798 | 795 | ||
799 | if (scsi_add_host(host, NULL)) | 796 | if (scsi_add_host(host, NULL)) |
diff --git a/drivers/serial/serial_cs.c b/drivers/serial/serial_cs.c index 6459252ed371..dadd686c9801 100644 --- a/drivers/serial/serial_cs.c +++ b/drivers/serial/serial_cs.c | |||
@@ -89,7 +89,6 @@ struct serial_info { | |||
89 | int manfid; | 89 | int manfid; |
90 | int prodid; | 90 | int prodid; |
91 | int c950ctrl; | 91 | int c950ctrl; |
92 | dev_node_t node[4]; | ||
93 | int line[4]; | 92 | int line[4]; |
94 | const struct serial_quirk *quirk; | 93 | const struct serial_quirk *quirk; |
95 | }; | 94 | }; |
@@ -289,8 +288,6 @@ static void serial_remove(struct pcmcia_device *link) | |||
289 | for (i = 0; i < info->ndev; i++) | 288 | for (i = 0; i < info->ndev; i++) |
290 | serial8250_unregister_port(info->line[i]); | 289 | serial8250_unregister_port(info->line[i]); |
291 | 290 | ||
292 | info->p_dev->dev_node = NULL; | ||
293 | |||
294 | if (!info->slave) | 291 | if (!info->slave) |
295 | pcmcia_disable_device(link); | 292 | pcmcia_disable_device(link); |
296 | } | 293 | } |
@@ -410,11 +407,6 @@ static int setup_serial(struct pcmcia_device *handle, struct serial_info * info, | |||
410 | } | 407 | } |
411 | 408 | ||
412 | info->line[info->ndev] = line; | 409 | info->line[info->ndev] = line; |
413 | sprintf(info->node[info->ndev].dev_name, "ttyS%d", line); | ||
414 | info->node[info->ndev].major = TTY_MAJOR; | ||
415 | info->node[info->ndev].minor = 0x40 + line; | ||
416 | if (info->ndev > 0) | ||
417 | info->node[info->ndev - 1].next = &info->node[info->ndev]; | ||
418 | info->ndev++; | 410 | info->ndev++; |
419 | 411 | ||
420 | return 0; | 412 | return 0; |
@@ -711,7 +703,6 @@ static int serial_config(struct pcmcia_device * link) | |||
711 | if (info->quirk->post(link)) | 703 | if (info->quirk->post(link)) |
712 | goto failed; | 704 | goto failed; |
713 | 705 | ||
714 | link->dev_node = &info->node[0]; | ||
715 | return 0; | 706 | return 0; |
716 | 707 | ||
717 | failed: | 708 | failed: |
diff --git a/drivers/telephony/ixj_pcmcia.c b/drivers/telephony/ixj_pcmcia.c index d442fd35620a..99cb2246ac72 100644 --- a/drivers/telephony/ixj_pcmcia.c +++ b/drivers/telephony/ixj_pcmcia.c | |||
@@ -22,7 +22,6 @@ | |||
22 | 22 | ||
23 | typedef struct ixj_info_t { | 23 | typedef struct ixj_info_t { |
24 | int ndev; | 24 | int ndev; |
25 | dev_node_t node; | ||
26 | struct ixj *port; | 25 | struct ixj *port; |
27 | } ixj_info_t; | 26 | } ixj_info_t; |
28 | 27 | ||
@@ -155,8 +154,6 @@ static int ixj_config(struct pcmcia_device * link) | |||
155 | j = ixj_pcmcia_probe(link->io.BasePort1, link->io.BasePort1 + 0x10); | 154 | j = ixj_pcmcia_probe(link->io.BasePort1, link->io.BasePort1 + 0x10); |
156 | 155 | ||
157 | info->ndev = 1; | 156 | info->ndev = 1; |
158 | info->node.major = PHONE_MAJOR; | ||
159 | link->dev_node = &info->node; | ||
160 | ixj_get_serial(link, j); | 157 | ixj_get_serial(link, j); |
161 | return 0; | 158 | return 0; |
162 | 159 | ||
diff --git a/sound/pcmcia/pdaudiocf/pdaudiocf.c b/sound/pcmcia/pdaudiocf/pdaudiocf.c index 60fddf363d54..df110df52a8b 100644 --- a/sound/pcmcia/pdaudiocf/pdaudiocf.c +++ b/sound/pcmcia/pdaudiocf/pdaudiocf.c | |||
@@ -234,7 +234,6 @@ static int pdacf_config(struct pcmcia_device *link) | |||
234 | if (snd_pdacf_assign_resources(pdacf, link->io.BasePort1, link->irq) < 0) | 234 | if (snd_pdacf_assign_resources(pdacf, link->io.BasePort1, link->irq) < 0) |
235 | goto failed; | 235 | goto failed; |
236 | 236 | ||
237 | link->dev_node = &pdacf->node; | ||
238 | return 0; | 237 | return 0; |
239 | 238 | ||
240 | failed: | 239 | failed: |
diff --git a/sound/pcmcia/pdaudiocf/pdaudiocf.h b/sound/pcmcia/pdaudiocf/pdaudiocf.h index b0601838112d..a0a7ec64222a 100644 --- a/sound/pcmcia/pdaudiocf/pdaudiocf.h +++ b/sound/pcmcia/pdaudiocf/pdaudiocf.h | |||
@@ -117,7 +117,6 @@ struct snd_pdacf { | |||
117 | 117 | ||
118 | /* pcmcia stuff */ | 118 | /* pcmcia stuff */ |
119 | struct pcmcia_device *p_dev; | 119 | struct pcmcia_device *p_dev; |
120 | dev_node_t node; | ||
121 | }; | 120 | }; |
122 | 121 | ||
123 | static inline void pdacf_reg_write(struct snd_pdacf *chip, unsigned char reg, unsigned short val) | 122 | static inline void pdacf_reg_write(struct snd_pdacf *chip, unsigned char reg, unsigned short val) |
diff --git a/sound/pcmcia/vx/vxpocket.c b/sound/pcmcia/vx/vxpocket.c index 5eced7a7c987..624b47a85f0a 100644 --- a/sound/pcmcia/vx/vxpocket.c +++ b/sound/pcmcia/vx/vxpocket.c | |||
@@ -211,7 +211,6 @@ static int snd_vxpocket_assign_resources(struct vx_core *chip, int port, int irq | |||
211 | static int vxpocket_config(struct pcmcia_device *link) | 211 | static int vxpocket_config(struct pcmcia_device *link) |
212 | { | 212 | { |
213 | struct vx_core *chip = link->priv; | 213 | struct vx_core *chip = link->priv; |
214 | struct snd_vxpocket *vxp = (struct snd_vxpocket *)chip; | ||
215 | int ret; | 214 | int ret; |
216 | 215 | ||
217 | snd_printdd(KERN_DEBUG "vxpocket_config called\n"); | 216 | snd_printdd(KERN_DEBUG "vxpocket_config called\n"); |
@@ -245,7 +244,6 @@ static int vxpocket_config(struct pcmcia_device *link) | |||
245 | if (snd_vxpocket_assign_resources(chip, link->io.BasePort1, link->irq) < 0) | 244 | if (snd_vxpocket_assign_resources(chip, link->io.BasePort1, link->irq) < 0) |
246 | goto failed; | 245 | goto failed; |
247 | 246 | ||
248 | link->dev_node = &vxp->node; | ||
249 | return 0; | 247 | return 0; |
250 | 248 | ||
251 | failed: | 249 | failed: |
diff --git a/sound/pcmcia/vx/vxpocket.h b/sound/pcmcia/vx/vxpocket.h index 27ea002294c0..ea4df16a28ef 100644 --- a/sound/pcmcia/vx/vxpocket.h +++ b/sound/pcmcia/vx/vxpocket.h | |||
@@ -43,7 +43,6 @@ struct snd_vxpocket { | |||
43 | 43 | ||
44 | /* pcmcia stuff */ | 44 | /* pcmcia stuff */ |
45 | struct pcmcia_device *p_dev; | 45 | struct pcmcia_device *p_dev; |
46 | dev_node_t node; | ||
47 | }; | 46 | }; |
48 | 47 | ||
49 | extern struct snd_vx_ops snd_vxpocket_ops; | 48 | extern struct snd_vx_ops snd_vxpocket_ops; |