From 1b69a7577a2a67841c0a6fb742392457a7aa989c Mon Sep 17 00:00:00 2001 From: H Hartley Sweeten Date: Fri, 25 Jan 2013 17:34:10 -0700 Subject: [PATCH] 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: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_cs.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/staging/comedi/drivers/ni_mio_cs.c b/drivers/staging/comedi/drivers/ni_mio_cs.c index 4043d02bd6ba..e0adf23bd527 100644 --- a/drivers/staging/comedi/drivers/ni_mio_cs.c +++ b/drivers/staging/comedi/drivers/ni_mio_cs.c @@ -378,14 +378,9 @@ static int cs_attach(struct pcmcia_device *link) return 0; } -static void cs_release(struct pcmcia_device *link) -{ - pcmcia_disable_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[] = { -- 2.30.2