From: Frank Mori Hess Date: Mon, 15 Oct 2007 00:43:18 +0000 (+0000) Subject: More linux 2.6.23 pcmcia fixes. X-Git-Tag: r0_7_75~25 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=127a1f6c1a6208a784b6ac1720c1e6986f03c515;p=comedi.git More linux 2.6.23 pcmcia fixes. --- diff --git a/comedi/drivers/cb_das16_cs.c b/comedi/drivers/cb_das16_cs.c index 12f61d24..dbd0a0fb 100644 --- a/comedi/drivers/cb_das16_cs.c +++ b/comedi/drivers/cb_das16_cs.c @@ -659,7 +659,7 @@ static void das16cs_pcmcia_detach(struct pcmcia_device *); static dev_info_t dev_info = "cb_das16_cs"; typedef struct local_info_t { - struct pcmcia_device link; + struct pcmcia_device *link; dev_node_t node; int stop; struct bus_operations *bus; @@ -677,10 +677,9 @@ typedef struct local_info_t { ======================================================================*/ -static int das16cs_pcmcia_attach(struct pcmcia_device *p_dev) +static int das16cs_pcmcia_attach(struct pcmcia_device *link) { local_info_t *local; - struct pcmcia_device *link; DEBUG(0, "das16cs_pcmcia_attach()\n"); @@ -688,7 +687,8 @@ static int das16cs_pcmcia_attach(struct pcmcia_device *p_dev) local = kmalloc(sizeof(local_info_t), GFP_KERNEL); if (!local) return -ENOMEM; memset(local, 0, sizeof(local_info_t)); - link = &local->link; link->priv = local; + local->link = link; + link->priv = local; /* Initialize the pcmcia_device structure */ /* Interrupt setup */