OSDN Git Service

staging: comedi: fix build errors caused by module_init/module_exit refactor
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 2 May 2012 00:03:48 +0000 (17:03 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 May 2012 22:53:43 +0000 (15:53 -0700)
commit2d2111ea2cf25cc60f7027130ceb34af2d03745d
treebb177d25af51dd771f146bc8cd909335c92ce1c0
parentd210267741fb2a8b6d741d9040703683a39087f4
staging: comedi: fix build errors caused by module_init/module_exit refactor

A couple build errors were introduced with the module_init/module_exit
refactor.

The struct comedi_driver variable was being accessed directly in the
attach and detach routines. Instead of doing this, access the variable
indirectly using the driver pointer in struct comedi_device.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/pcmda12.c
drivers/staging/comedi/drivers/pcmmio.c
drivers/staging/comedi/drivers/pcmuio.c