commit | a5808add9a6cae290af60bb3b4efd2c9d3208588 | [log] [tgz] |
---|---|---|
author | Alex Elder <elder@linaro.org> | Tue Sep 09 13:55:06 2014 -0500 |
committer | Greg Kroah-Hartman <greg@kroah.com> | Tue Sep 09 15:09:06 2014 -0700 |
tree | faaa61ca26189d34b005c03804711b0c6e4b02c4 | |
parent | badad68e3adc3d0b7cbfe66902cb21c97833e242 [diff] |
greybus: call put_device() on error As soon as we've called device_initialize() we're required to call put_device() in order to drop our reference to the device structure. This was missed in the error path in greybus_new_module(). Fix that. Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>