From 945ff67194f7ffbe90dd20d7f169c92a60a222a0 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sun, 28 Jan 2001 19:20:12 +0000 Subject: [PATCH] fixed bug in attach function --- comedi/drivers/dt2811.c | 2 ++ 1 file changed, 2 insertions(+) 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) { -- 2.26.2