mfd: RK808: update the "pm_power_off" initalization conditons
authorShengfei xu <xsf@rock-chips.com>
Thu, 24 Mar 2016 07:41:47 +0000 (15:41 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 6 Apr 2016 06:19:59 +0000 (14:19 +0800)
Only the powerofff callback feature is supported through the
rockchip,system-power-controller.

Change-Id: I55e73c05a749edab6c3710e304ee86c03812ab6f
Signed-off-by: Shengfei xu <xsf@rock-chips.com>
drivers/mfd/rk808.c

index 1dafebac68acb0d85cbea11a56aa11077d483e42..02de4c46a7022c1d471c5b0460baa8d605d5c602 100644 (file)
@@ -382,7 +382,7 @@ static int rk808_probe(struct i2c_client *client,
 
        pm_off = of_property_read_bool(np,
                                "rockchip,system-power-controller");
-       if (pm_off && !pm_power_off) {
+       if (pm_off) {
                rk808_i2c_client = client;
                pm_power_off = rk808_device_shutdown;
        }