greybus: power_supply: fix check for configured supply
authorRui Miguel Silva <rui.silva@linaro.org>
Tue, 12 Jan 2016 14:38:21 +0000 (14:38 +0000)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 12 Jan 2016 19:21:35 +0000 (11:21 -0800)
commitadb57cff54dd4418f4d5b17f03a976dfdc670226
tree2ca439069ec4375a4208190a626b9261b06c88af
parente5273381041fc75215fb50661db39d2f8ed5544e
greybus: power_supply: fix check for configured supply

The correct check for if the power supply is ready to receive event is
wrong and it should check for the registered flag.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Reported-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/power_supply.c