staging: comedi: ni_daq_700: change driver registration order
authorH Hartley Sweeten <hartleys@visionengravers.com>
Fri, 22 Jun 2012 23:15:16 +0000 (16:15 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Jun 2012 03:55:04 +0000 (20:55 -0700)
commitf90398294753b3f88570af1c2a68032f6ae6bfbe
treeccc3294c92102c806afcf2bd6a37bb697c2f81be
parent5fe9b247cc5dd6d39d9252fc0b51700e438a65fd
staging: comedi: ni_daq_700: change driver registration order

As done with the other comedi driver types, register the
comedi_driver first then the pcmcia_driver. Also, make
sure the pcmcia_driver registration succeeds and unregister
the comedi_driver it it fails.

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