Commit 54d8e2c3 authored by Linus Walleij's avatar Linus Walleij Committed by Samuel Ortiz

mfd: Add missing #ifdef around tc3589x PM block

The CONFIG_PM code was unconditionally compiled in despite
the dev_pm_ops only being included into the driver struct
if used. Fix this by adding the missing #ifdef.
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent d8e4a88b
...@@ -357,6 +357,7 @@ static int __devexit tc3589x_remove(struct i2c_client *client) ...@@ -357,6 +357,7 @@ static int __devexit tc3589x_remove(struct i2c_client *client)
return 0; return 0;
} }
#ifdef CONFIG_PM
static int tc3589x_suspend(struct device *dev) static int tc3589x_suspend(struct device *dev)
{ {
struct tc3589x *tc3589x = dev_get_drvdata(dev); struct tc3589x *tc3589x = dev_get_drvdata(dev);
...@@ -387,6 +388,7 @@ static int tc3589x_resume(struct device *dev) ...@@ -387,6 +388,7 @@ static int tc3589x_resume(struct device *dev)
static const SIMPLE_DEV_PM_OPS(tc3589x_dev_pm_ops, tc3589x_suspend, static const SIMPLE_DEV_PM_OPS(tc3589x_dev_pm_ops, tc3589x_suspend,
tc3589x_resume); tc3589x_resume);
#endif
static const struct i2c_device_id tc3589x_id[] = { static const struct i2c_device_id tc3589x_id[] = {
{ "tc3589x", 24 }, { "tc3589x", 24 },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment