From 35da1a78c075f3b30d959fd961ce3ab38155a7ab Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Wed, 22 Oct 2008 14:15:35 +0000 Subject: [PATCH] Fix for no-PCI build. --- comedi/drivers/ni_labpc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/comedi/drivers/ni_labpc.c b/comedi/drivers/ni_labpc.c index 901fc7bb..802da0d7 100644 --- a/comedi/drivers/ni_labpc.c +++ b/comedi/drivers/ni_labpc.c @@ -648,7 +648,9 @@ static int labpc_attach(comedi_device * dev, comedi_devconfig * it) unsigned long iobase = 0; unsigned int irq = 0; unsigned int dma_chan = 0; +#ifdef CONFIG_COMEDI_PCI int retval; +#endif /* allocate and initialize dev->private */ if (alloc_private(dev, sizeof(labpc_private)) < 0) @@ -1990,7 +1992,11 @@ static void write_caldac(comedi_device * dev, unsigned int channel, devpriv->write_byte(devpriv->command5_bits, dev->iobase + COMMAND5_REG); } +#ifdef CONFIG_COMEDI_PCI COMEDI_PCI_INITCLEANUP(driver_labpc, labpc_pci_table); +#else +COMEDI_INITCLEANUP(driver_labpc); +#endif EXPORT_SYMBOL_GPL(labpc_common_attach); EXPORT_SYMBOL_GPL(labpc_common_detach); -- 2.26.2