diff options
author | Javier Martinez Canillas <martinez.javier@gmail.com> | 2010-04-30 22:31:37 +0200 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-05-17 15:44:57 +0200 |
commit | bfc2cc3497dfa7800faa9d2915e997d65daaf56e (patch) | |
tree | 8c406365abd575fe906340a7f233ee2f8c6c06bc | |
parent | drivers/staging/comedi: dev_node removal (ni_labpc_cs) (diff) | |
download | linux-bfc2cc3497dfa7800faa9d2915e997d65daaf56e.tar.xz linux-bfc2cc3497dfa7800faa9d2915e997d65daaf56e.zip |
drivers/staging/comedi: dev_node removal (ni_mio_cs)
Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
-rw-r--r-- | drivers/staging/comedi/drivers/ni_mio_cs.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/staging/comedi/drivers/ni_mio_cs.c b/drivers/staging/comedi/drivers/ni_mio_cs.c index a6007abce34a..1e8aebae8ae8 100644 --- a/drivers/staging/comedi/drivers/ni_mio_cs.c +++ b/drivers/staging/comedi/drivers/ni_mio_cs.c @@ -262,11 +262,6 @@ static void cs_detach(struct pcmcia_device *); static struct pcmcia_device *cur_dev = NULL; static const dev_info_t dev_info = "ni_mio_cs"; -static dev_node_t dev_node = { - "ni_mio_cs", - COMEDI_MAJOR, 0, - NULL -}; static int cs_attach(struct pcmcia_device *link) { @@ -291,8 +286,7 @@ static void cs_detach(struct pcmcia_device *link) { DPRINTK("cs_detach(link=%p)\n", link); - if (link->dev_node) - cs_release(link); + cs_release(link); } static int mio_cs_suspend(struct pcmcia_device *link) @@ -347,8 +341,6 @@ static void mio_cs_config(struct pcmcia_device *link) dev_info(&link->dev, "no IRQ available\n"); ret = pcmcia_request_configuration(link, &link->conf); - - link->dev_node = &dev_node; } static int mio_cs_attach(struct comedi_device *dev, struct comedi_devconfig *it) |