staging: comedi: contec_pci_dio: remove thisboard macro
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 16 Aug 2012 00:30:26 +0000 (17:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Aug 2012 18:30:40 +0000 (11:30 -0700)
commit5432e3f3e9f2d2644115b9c881c1e9dad0e1f8fc
tree4c816f2c73ede5e1c572ed8d5ed153e6f2c24aba
parent8cf78422eaeb29828fb6b897550c6090696fc40d
staging: comedi: contec_pci_dio: remove thisboard macro

This macro relies on a local variable of a specific name. Remove the
macro and use the comedi_board() helper to get the thisboard pointer.

Move the 'dev->board_name = thisboard->name;' in contec_attach().
The contec_find_pci_dev() function modifies the dev->board_ptr.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/contec_pci_dio.c