Revert "mfd: tps6586x: add suspend/resume handlers"
Varun Wadekar [Mon, 14 Mar 2011 04:21:33 +0000 (09:21 +0530)]
This reverts commit d64db664f2e8d6f4d08db249135011e32d54bc7a.

Original-Change-Id: I8de61440cbbe5a12f8cf2d045e7035b9a0ab7369
Reviewed-on: http://git-master/r/22775
Tested-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Rab6b8ff3206da1a823c8c9fa00aa940714a36abd

drivers/mfd/tps6586x.c

index 49b1127..6d842fa 100644 (file)
@@ -602,25 +602,6 @@ static int __devexit tps6586x_i2c_remove(struct i2c_client *client)
        return 0;
 }
 
-#ifdef CONFIG_PM
-static int tps6586x_i2c_suspend(struct i2c_client *client,
-       pm_message_t state)
-{
-       if (client->irq)
-               disable_irq(client->irq);
-
-       return 0;
-}
-
-static int tps6586x_i2c_resume(struct i2c_client *client)
-{
-       if (client->irq)
-               enable_irq(client->irq);
-
-       return 0;
-}
-#endif
-
 static const struct i2c_device_id tps6586x_id_table[] = {
        { "tps6586x", 0 },
        { },
@@ -635,10 +616,6 @@ static struct i2c_driver tps6586x_driver = {
        .probe          = tps6586x_i2c_probe,
        .remove         = __devexit_p(tps6586x_i2c_remove),
        .id_table       = tps6586x_id_table,
-#ifdef CONFIG_PM
-       .suspend        = tps6586x_i2c_suspend,
-       .resume         = tps6586x_i2c_resume,
-#endif
 };
 
 static int __init tps6586x_init(void)