From: Rhyland Klein Date: Tue, 24 May 2011 19:06:50 +0000 (-0700) Subject: bq20z75: Enable detection after registering X-Git-Tag: upstream/snapshot3+hdmi~9414^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ee177d96e0ff497c46b2fe5c3b49e47810b5a8ca;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git bq20z75: Enable detection after registering Need to enable detection, which is also blocking the unit conversion logic after registering the power_supply. Signed-off-by: Rhyland Klein Signed-off-by: Anton Vorontsov --- diff --git a/drivers/power/bq20z75.c b/drivers/power/bq20z75.c index e1adc0e..9c5e5be 100644 --- a/drivers/power/bq20z75.c +++ b/drivers/power/bq20z75.c @@ -702,6 +702,8 @@ skip_gpio: INIT_DELAYED_WORK(&bq20z75_device->work, bq20z75_delayed_work); + bq20z75_device->enable_detection = true; + return 0; exit_psupply: