From 01510d204c65269918bcef8656e1b94e130a532c Mon Sep 17 00:00:00 2001 From: Bharat Nihalani Date: Tue, 21 Feb 2012 18:37:25 +0530 Subject: mfd: max8907c: intialize pm_power_off Initialize pm_power_off based on use_power_off passed as platform data. Bug 943129 Change-Id: I0a158d226a046809a6d62cf8d9881152cfc2ab83 Signed-off-by: Bharat Nihalani Reviewed-on: http://git-master/r/84946 Reviewed-by: Prashant Gaikwad --- drivers/mfd/max8907c.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mfd/max8907c.c b/drivers/mfd/max8907c.c index 2c5774295164..d03dbced21e1 100644 --- a/drivers/mfd/max8907c.c +++ b/drivers/mfd/max8907c.c @@ -310,6 +310,9 @@ static int max8907c_i2c_probe(struct i2c_client *i2c, ret = max8097c_add_subdevs(max8907c, pdata); + if (pdata->use_power_off && !pm_power_off) + pm_power_off = max8907c_power_off; + if (pdata->max8907c_setup) return pdata->max8907c_setup(); -- cgit v1.2.3