i2c-puv3: Use struct dev_pm_ops for power management
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 11 Jul 2012 19:25:55 +0000 (21:25 +0200)
committerWolfram Sang <w.sang@pengutronix.de>
Thu, 12 Jul 2012 10:04:54 +0000 (12:04 +0200)
commitb9f1b45bacb6485838e0504c312ecabc90c1e273
tree86a23238390f18f476f97ae0ce6ed008bd9e5b55
parent783414ba9a65fa15e44716dc478e9536d202e0ff
i2c-puv3: Use struct dev_pm_ops for power management

Make the PKUnity-v3 SoC I2C controller driver define its suspend
callback through a struct dev_pm_ops object rather than by using
a legacy PM hook in struct platform_driver.  The empty resume
callback is not necessary, so remove it.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/busses/i2c-puv3.c