staging: comedi: restrict comedi_auto_config() to single driver
authorIan Abbott <abbotti@mev.co.uk>
Fri, 30 Mar 2012 16:15:03 +0000 (17:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Apr 2012 18:22:01 +0000 (11:22 -0700)
commitcf938c247307826e70f93dd9072c70d3020d6d67
treebcf53d9dd325949d0950194671af6f50c42ff6f8
parent63bf3d11df34426caa81e5478b2ff0e99875e972
staging: comedi: restrict comedi_auto_config() to single driver

comedi_auto_config() only needs to consider a single struct
comedi_driver object, but it currently calls comedi_device_attach()
which looks at all struct comedi_driver objects registered with the
Comedi core.

Instead, call the recently added comedi_auto_config_helper() with a new
wrapper comedi_auto_config_wrapper() to mimic the effect of
comedi_device_attach() for a single struct comedi_driver.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers.c