staging: comedi: cb_das13_cs: change driver registration order
authorH Hartley Sweeten <hartleys@visionengravers.com>
Mon, 25 Jun 2012 22:20:53 +0000 (15:20 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Jun 2012 22:20:19 +0000 (15:20 -0700)
commit64c205f99790798fdcf42ea5093df1393a867e30
tree2f81b62c501f97535cc4bb48d23649d41e800c25
parent6f47503dcca489144384e09a6fa0848b46434fd0
staging: comedi: cb_das13_cs: 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/cb_das16_cs.c