greybus: report right error value
authorAlex Elder <elder@linaro.org>
Tue, 24 May 2016 18:34:47 +0000 (13:34 -0500)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 27 May 2016 18:28:16 +0000 (11:28 -0700)
commitf9340fc7dd9f42edfcd7a0e332798ae01a6b48ac
treece26680e0aee05d1bd9334324bbe9d3d52aeac5c
parent52033fdebc92021490729465e27ffb47cd42b0e0
greybus: report right error value

Running "make coccicheck" on the Greybus code discovered that
an error message in gb_camera_debugfs_init() was interpreting
the wrong value in reporting the error code.  Fix that.

Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/camera.c