static inline uint16_t munge_bipolar_sample(const struct comedi_device *dev,
                                            uint16_t sample)
 {
-       const struct das1800_board *thisboard = comedi_board(dev);
+       const struct das1800_board *thisboard = dev->board_ptr;
 
        sample += 1 << (thisboard->resolution - 1);
        return sample;
                                 struct comedi_subdevice *s,
                                 struct comedi_cmd *cmd)
 {
-       const struct das1800_board *thisboard = comedi_board(dev);
+       const struct das1800_board *thisboard = dev->board_ptr;
        struct das1800_private *devpriv = dev->private;
        int err = 0;
        unsigned int arg;
                            struct comedi_subdevice *s,
                            struct comedi_insn *insn, unsigned int *data)
 {
-       const struct das1800_board *thisboard = comedi_board(dev);
+       const struct das1800_board *thisboard = dev->board_ptr;
        int i, n;
        int chan, range, aref, chan_range;
        int timeout = 1000;
                            struct comedi_subdevice *s,
                            struct comedi_insn *insn, unsigned int *data)
 {
-       const struct das1800_board *thisboard = comedi_board(dev);
+       const struct das1800_board *thisboard = dev->board_ptr;
        struct das1800_private *devpriv = dev->private;
        int chan = CR_CHAN(insn->chanspec);
 /* int range = CR_RANGE(insn->chanspec); */
 
 static int das1800_probe(struct comedi_device *dev)
 {
-       const struct das1800_board *board = comedi_board(dev);
+       const struct das1800_board *board = dev->board_ptr;
        int index;
        int id;
 
        }
 
        dev->board_ptr = das1800_boards + board;
-       thisboard = comedi_board(dev);
+       thisboard = dev->board_ptr;
        dev->board_name = thisboard->name;
 
        /*  if it is an 'ao' board with fancy analog out then we need extra io ports */