OSDN Git Service

Staging: comedi: comedi_fops: Avoid orphaned proc entry
authorCheah Kok Cheong <thrust73@gmail.com>
Fri, 30 Dec 2016 11:25:52 +0000 (19:25 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Aug 2017 02:19:40 +0000 (19:19 -0700)
commitb5a48676e7a2ee4ea0e2e02ce60ab2d0151916e0
treecce88872cfa4e8d38577f8f3f12b8add69996fd3
parent0c335d55cee6c632008a1b0cf34c2d12d3ee14e7
Staging: comedi: comedi_fops: Avoid orphaned proc entry

commit bf279ece37d2a3eaaa9813fcd7a1d8a81eb29c20 upstream.

Move comedi_proc_init to the end to avoid orphaned proc entry
if module loading failed.

Signed-off-by: Cheah Kok Cheong <thrust73@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedi_fops.c