From: Shengfei xu Date: Thu, 24 Mar 2016 07:41:47 +0000 (+0800) Subject: mfd: RK808: update the "pm_power_off" initalization conditons X-Git-Tag: firefly_0821_release~2884 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b2c0fb3a3c242550613a80fbdca7bce93e2e71f6;p=firefly-linux-kernel-4.4.55.git 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 --- diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c index 1dafebac68ac..02de4c46a702 100644 --- a/drivers/mfd/rk808.c +++ b/drivers/mfd/rk808.c @@ -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; }