提交 bfc2cc34 编写于 作者: J Javier Martinez Canillas 提交者: Dominik Brodowski

drivers/staging/comedi: dev_node removal (ni_mio_cs)

Signed-off-by: NJavier Martinez Canillas <martinez.javier@gmail.com>
Signed-off-by: NDominik Brodowski <linux@dominikbrodowski.net>
上级 99bd8f22
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册