]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: ni_labpc: pass the isr_flags to labpc_common_attach()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 22 Apr 2013 19:33:53 +0000 (12:33 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Apr 2013 17:36:28 +0000 (10:36 -0700)
commited5063c673d21df5fe21778592ea5154188a5ea7
treeca7f375862f77ac452bbbc367ddbaa5aea031f85
parent274ddab8a093e628a99cd82a7c6f29ac4b9a1b19
staging: comedi: ni_labpc: pass the isr_flags to labpc_common_attach()

The PCI and PCMCIA LabPC boards use shared interrupts and need the
IRQF_SHARED flag set when requesting the irq, the ISA boards do not.

Instead of checking the 'bustype' in labpc_common_attach() in order
to determine the isr_flags, just pass the flags as a parameter to the
function.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_labpc.c
drivers/staging/comedi/drivers/ni_labpc.h
drivers/staging/comedi/drivers/ni_labpc_cs.c
drivers/staging/comedi/drivers/ni_labpc_pci.c