This series add power management support for tps6594_rtc. The 1st patch fixes a memleak found in the probe() The 2nd patch simply introduce a private structure as drvdata that will be used in the 3rd patch. (no functionnal change) The 3rd patch introduce the power management support. Changes in v3: - Fix a memleak found in probe() - introduce a private structure to prevent squatting the mfd structure (struct tps6594) with rtc-only related stuff. Changes in v2: - use DEFINE_SIMPLE_DEV_PM_OPS instead of deprecated SIMPLE_DEV_PM_OPS (This fixes the defined but unsed warning when CONFIG_PM is unset) Richard Genoud (3): rtc: tps6594: Fix memleak in probe rtc: tps6594: introduce private structure as drvdata rtc: tps6594: Add power management support drivers/rtc/rtc-tps6594.c | 75 ++++++++++++++++++++++++++++++++------- 1 file changed, 63 insertions(+), 12 deletions(-)