staging/crystalhd: assign PTR_ERR at fail cases to rc in chd_dec_init_chdev
authorDevendra Naga <develkernel412222@gmail.com>
Sun, 5 Aug 2012 21:13:47 +0000 (02:58 +0545)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Aug 2012 02:15:49 +0000 (19:15 -0700)
commit3b2f1fbec9218f24425eaaeedd4fd3e6ef3e9f44
tree907f85da9d76fae660186e682f1e1d7bf1c70a24
parentcdf5e55124e4804fc0027df7e89567a3f5eed8bf
staging/crystalhd: assign PTR_ERR at fail cases to rc in chd_dec_init_chdev

the rc assignment to PTR_ERR at fail cases of class_create and device_create are missed out,
return proper error rather than returning -ENODEV.

Signed-off-by: Devendra Naga <develkernel412222@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/crystalhd/crystalhd_lnx.c