From: Frank Mori Hess Date: Sun, 28 Jan 2001 19:20:12 +0000 (+0000) Subject: fixed bug in attach function X-Git-Tag: r0_7_56~31 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=945ff67194f7ffbe90dd20d7f169c92a60a222a0;p=comedi.git fixed bug in attach function --- diff --git a/comedi/drivers/dt2811.c b/comedi/drivers/dt2811.c index 1b0d9635..1b5f8fbe 100644 --- a/comedi/drivers/dt2811.c +++ b/comedi/drivers/dt2811.c @@ -288,6 +288,8 @@ static int dt2811_attach(comedi_device * dev, comedi_devconfig * it) return -EIO; } request_region(dev->iobase, DT2811_SIZE, driver_name); + + board = dev->board; if (board == card_2811_pgh) { dev->board_name = "dt2811-pgh"; } else if (board == card_2811_pgl) {