Merge branch 'for-3.2' into for-3.3
[firefly-linux-kernel-4.4.55.git] / drivers / mfd / tc3589x.c
index c27e515b0722b2dfa72263e5bd3725ddd27885fd..de979742c6fc1049cf49f858870034f3885eeb05 100644 (file)
@@ -357,6 +357,7 @@ static int __devexit tc3589x_remove(struct i2c_client *client)
        return 0;
 }
 
+#ifdef CONFIG_PM
 static int tc3589x_suspend(struct device *dev)
 {
        struct tc3589x *tc3589x = dev_get_drvdata(dev);
@@ -387,6 +388,7 @@ static int tc3589x_resume(struct device *dev)
 
 static const SIMPLE_DEV_PM_OPS(tc3589x_dev_pm_ops, tc3589x_suspend,
                                                tc3589x_resume);
+#endif
 
 static const struct i2c_device_id tc3589x_id[] = {
        { "tc3589x", 24 },