]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
staging: comedi: das08_cs: change driver registration order
authorH Hartley Sweeten <hartleys@visionengravers.com>
Mon, 2 Jul 2012 22:43:52 +0000 (15:43 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jul 2012 22:51:18 +0000 (15:51 -0700)
commit36061c842be56f62bf77d7339bc4581a38e03846
tree92949120b17bcc2329aa376bc793d1b06c1523ae
parent468777024e3f635c78cc7b0370f447978669431d
staging: comedi: das08_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 if it fails.

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/drivers/das08_cs.c