Johan Hovold d9966f1de9 staging: greybus: arche-platform: fix device reference leak
Make sure to drop the device reference taken by of_find_device_by_node()
before returning from arche_platform_change_state().

Note that this code is expected to be removed, but let's fix up the leak
nonetheless.

Fixes: 886aba558b9e ("greybus: arche-platform: Export fn to allow...")
Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Vaibhav Hiremath <hvaibhav.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-11-07 11:45:42 +01:00
..
2016-07-28 07:30:13 -07:00
2016-08-12 17:38:19 +02:00
2016-07-14 16:53:55 -05:00
2016-07-28 07:30:13 -07:00
2016-04-25 11:08:30 -07:00
2016-07-14 16:53:55 -05:00
2016-08-26 13:21:13 +02:00