fixed bug in attach function
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 28 Jan 2001 19:20:12 +0000 (19:20 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sun, 28 Jan 2001 19:20:12 +0000 (19:20 +0000)
comedi/drivers/dt2811.c

index 1b0d9635dd1c10ee3cc2039f52d2a3206e74d24d..1b5f8fbe2c841d91ee8c42366ed22be4f009a0a0 100644 (file)
@@ -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) {