提交 1b69a757 编写于 作者: H H Hartley Sweeten 提交者: Greg Kroah-Hartman

staging: comedi: ni_mio_cs: remove cs_release()

This function simply calls pcmcia_disable_device(). Remove it and
just call pcmcia_disable_device() where needed.
Signed-off-by: NH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 bea5b903
...@@ -378,14 +378,9 @@ static int cs_attach(struct pcmcia_device *link) ...@@ -378,14 +378,9 @@ static int cs_attach(struct pcmcia_device *link)
return 0; return 0;
} }
static void cs_release(struct pcmcia_device *link)
{
pcmcia_disable_device(link);
}
static void cs_detach(struct pcmcia_device *link) static void cs_detach(struct pcmcia_device *link)
{ {
cs_release(link); pcmcia_disable_device(link);
} }
static const struct pcmcia_device_id ni_mio_cs_ids[] = { static const struct pcmcia_device_id ni_mio_cs_ids[] = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册