greybus: lights: remove has_flash on failure
authorRui Miguel Silva <rui.silva@linaro.org>
Wed, 17 Feb 2016 14:32:52 +0000 (14:32 +0000)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 17 Feb 2016 23:24:09 +0000 (15:24 -0800)
commit137f717942c9cff82484ee90647881d9c524178f
tree35a7563542870a74be929f813884e31238cdf3b5
parent492331435465977407e43865c19e34918cd90a66
greybus: lights: remove has_flash on failure

If register to v4l2 fails just mark the light as not having flash so in
release we do not try to unregister.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/light.c