Added resume operation for PM support Signed-off-by: Konstantin Porotchkin <kostap@xxxxxxxxxxx> --- drivers/i2c/busses/i2c-mv64xxx.c | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/drivers/i2c/busses/i2c-mv64xxx.c b/drivers/i2c/busses/i2c-mv64xxx.c index a6e9a3f..b246dab 100644 --- a/drivers/i2c/busses/i2c-mv64xxx.c +++ b/drivers/i2c/busses/i2c-mv64xxx.c @@ -638,9 +638,23 @@ mv64xxx_i2c_remove(struct platform_device *dev) return rc; } +#ifdef CONFIG_PM +static int +mv64xxx_i2c_resume(struct platform_device *dev) +{ + struct mv64xxx_i2c_data *drv_data = platform_get_drvdata(dev); + mv64xxx_i2c_hw_init(drv_data); + return 0; +} + +#else +#define mv64xxx_i2c_resume NULL +#endif + static struct platform_driver mv64xxx_i2c_driver = { .probe = mv64xxx_i2c_probe, .remove = __devexit_p(mv64xxx_i2c_remove), + .resume = mv64xxx_i2c_resume, .driver = { .owner = THIS_MODULE, .name = MV64XXX_I2C_CTLR_NAME, -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html