i2c-tegra: Use struct dev_pm_ops for power management
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 11 Jul 2012 19:27:30 +0000 (21:27 +0200)
committerWolfram Sang <w.sang@pengutronix.de>
Thu, 12 Jul 2012 10:04:55 +0000 (12:04 +0200)
commit6a7b3c3c465cef29d92dfc3fbbff0d958aa8be04
treed6e3bc2d826775d4d5d886068ce9f326cc78d2aa
parent4aacc4b1b13cecef90d9ccbf9cf3fb4cc99807a0
i2c-tegra: Use struct dev_pm_ops for power management

Make the Tegra I2C controller driver define its PM callbacks through
a struct dev_pm_ops object rather than by using legacy PM hooks
in struct platform_driver.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
[wsa] adapt to of_match_ptr change

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/busses/i2c-tegra.c