staging: comedi: ni_pcidio: use comedi_load_firmware()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 17 May 2013 18:18:01 +0000 (11:18 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2013 19:09:50 +0000 (12:09 -0700)
commitd569541e537e13136fc775a902cda06f4c48bbe1
tree1be37af8602e082c8a29391255e478aa41949a48
parentcb43cc0f031563e09820360f215c16a4582a2618
staging: comedi: ni_pcidio: use comedi_load_firmware()

Use comedi_load_firmware() instead of duplicating the code in a
private function.

This driver loads multiple firmware images to the device. Modify
comedi_load_firmware() to take a 'context' that is passed to the
firmware upload callback function.

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/comedidev.h
drivers/staging/comedi/drivers.c
drivers/staging/comedi/drivers/daqboard2000.c
drivers/staging/comedi/drivers/jr3_pci.c
drivers/staging/comedi/drivers/me_daq.c
drivers/staging/comedi/drivers/ni_pcidio.c