aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/parport
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2010-05-22 02:36:56 -0400
committerGrant Likely <grant.likely@secretlab.ca>2010-05-22 02:36:56 -0400
commitcf9b59e9d3e008591d1f54830f570982bb307a0d (patch)
tree113478ce8fd8c832ba726ffdf59b82cb46356476 /drivers/parport
parent44504b2bebf8b5823c59484e73096a7d6574471d (diff)
parentf4b87dee923342505e1ddba8d34ce9de33e75050 (diff)
Merge remote branch 'origin' into secretlab/next-devicetree
Merging in current state of Linus' tree to deal with merge conflicts and build failures in vio.c after merge. Conflicts: drivers/i2c/busses/i2c-cpm.c drivers/i2c/busses/i2c-mpc.c drivers/net/gianfar.c Also fixed up one line in arch/powerpc/kernel/vio.c to use the correct node pointer. Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/parport')
-rw-r--r--drivers/parport/parport_cs.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/parport/parport_cs.c b/drivers/parport/parport_cs.c
index 7dd370fa3439..fd8cfe95f0a3 100644
--- a/drivers/parport/parport_cs.c
+++ b/drivers/parport/parport_cs.c
@@ -75,7 +75,6 @@ INT_MODULE_PARM(epp_mode, 1);
75typedef struct parport_info_t { 75typedef 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
@@ -105,7 +104,6 @@ static int parport_probe(struct pcmcia_device *link)
105 104
106 link->io.Attributes1 = IO_DATA_PATH_WIDTH_8; 105 link->io.Attributes1 = IO_DATA_PATH_WIDTH_8;
107 link->io.Attributes2 = IO_DATA_PATH_WIDTH_8; 106 link->io.Attributes2 = IO_DATA_PATH_WIDTH_8;
108 link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING;
109 link->conf.Attributes = CONF_ENABLE_IRQ; 107 link->conf.Attributes = CONF_ENABLE_IRQ;
110 link->conf.IntType = INT_MEMORY_AND_IO; 108 link->conf.IntType = INT_MEMORY_AND_IO;
111 109
@@ -174,20 +172,19 @@ static int parport_config(struct pcmcia_device *link)
174 if (ret) 172 if (ret)
175 goto failed; 173 goto failed;
176 174
177 ret = pcmcia_request_irq(link, &link->irq); 175 if (!link->irq)
178 if (ret)
179 goto failed; 176 goto failed;
180 ret = pcmcia_request_configuration(link, &link->conf); 177 ret = pcmcia_request_configuration(link, &link->conf);
181 if (ret) 178 if (ret)
182 goto failed; 179 goto failed;
183 180
184 p = parport_pc_probe_port(link->io.BasePort1, link->io.BasePort2, 181 p = parport_pc_probe_port(link->io.BasePort1, link->io.BasePort2,
185 link->irq.AssignedIRQ, PARPORT_DMA_NONE, 182 link->irq, PARPORT_DMA_NONE,
186 &link->dev, IRQF_SHARED); 183 &link->dev, IRQF_SHARED);
187 if (p == NULL) { 184 if (p == NULL) {
188 printk(KERN_NOTICE "parport_cs: parport_pc_probe_port() at " 185 printk(KERN_NOTICE "parport_cs: parport_pc_probe_port() at "
189 "0x%3x, irq %u failed\n", link->io.BasePort1, 186 "0x%3x, irq %u failed\n", link->io.BasePort1,
190 link->irq.AssignedIRQ); 187 link->irq);
191 goto failed; 188 goto failed;
192 } 189 }
193 190
@@ -195,11 +192,7 @@ static int parport_config(struct pcmcia_device *link)
195 if (epp_mode) 192 if (epp_mode)
196 p->modes |= PARPORT_MODE_TRISTATE | PARPORT_MODE_EPP; 193 p->modes |= PARPORT_MODE_TRISTATE | PARPORT_MODE_EPP;
197 info->ndev = 1; 194 info->ndev = 1;
198 info->node.major = LP_MAJOR;
199 info->node.minor = p->number;
200 info->port = p; 195 info->port = p;
201 strcpy(info->node.dev_name, p->name);
202 link->dev_node = &info->node;
203 196
204 return 0; 197 return 0;
205 198