From 74341cc6e826107dd9407dea6029e26371471c0a Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Tue, 18 Feb 2003 00:35:09 +0000 Subject: [PATCH] fix pci discovery --- comedi/drivers/gsc_hpdi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comedi/drivers/gsc_hpdi.c b/comedi/drivers/gsc_hpdi.c index 904fe3cd..d600dc73 100644 --- a/comedi/drivers/gsc_hpdi.c +++ b/comedi/drivers/gsc_hpdi.c @@ -493,7 +493,7 @@ static int hpdi_attach(comedi_device *dev, comedi_devconfig *it) } }while( pcidev != NULL ); } - if( i == num_boards() ) + if( dev->board_ptr == NULL ) { printk("gsc_hpdi: no hpdi card found\n"); return -EIO; -- 2.26.2