staging/crystalhd: unregister chardev when class_create fails in chd_dec_init_chdev
authorDevendra Naga <develkernel412222@gmail.com>
Sun, 5 Aug 2012 21:14:56 +0000 (02:59 +0545)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Aug 2012 02:15:49 +0000 (19:15 -0700)
we missed a unregiser_chrdev if the class_create and subsequent function calls / checks fail

Signed-off-by: Devendra Naga <develkernel412222@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

No differences found