mfd: RK808: update the "pm_power_off" initalization conditons

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>
This commit is contained in:
Shengfei xu
2016-03-24 15:41:47 +08:00
committed by Tao Huang
parent 39eba75127
commit c17beee83e

View File

@@ -1342,7 +1342,7 @@ static int rk808_probe(struct i2c_client *client,
dev_err(&client->dev, "create rk8xx sysfs error\n");
}
if (pm_off && !pm_power_off) {
if (pm_off) {
rk808_i2c_client = client;
pm_power_off = rk808->pm_pwroff_fn;
}