staging: comedi: refactor comedi_device_attach() a bit
authorIan Abbott <abbotti@mev.co.uk>
Fri, 30 Mar 2012 16:15:00 +0000 (17:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Apr 2012 18:21:11 +0000 (11:21 -0700)
commit3902a370281d2f2b130f141e8cf94eab40125769
treea0d80f24abbfe68ace94063433857aafb45a0f9b
parentd8b6ca0850c558f21989d468801ad1414b1372c4
staging: comedi: refactor comedi_device_attach() a bit

Split the post-config part of comedi_device_attach() into new function
comedi_device_postconfig() and rearrange the rest of the function a bit.

The new comedi_device_postconfig() function will be called by some new
bus-type-specific auto-attach functions.

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