Skip to contentSkip to conversation

drivers-rtc-class-convert-from-legacy-pm-ops-to-dev_pm_ops.patch removed from -mm tree

failures [email protected] 1 participant 1 message Jun 6, 2013 Real time clock (RTC)

lore
Share & tools
lore
#0 lore raw

Subject: [failures] drivers-rtc-class-convert-from-legacy-pm-ops-to-dev_pm_ops.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 06 Jun 2013 13:07:22 -0700

The patch titled
Subject: drivers/rtc/class: convert from Legacy pm ops to dev_pm_ops
has been removed from the -mm tree. Its filename was
drivers-rtc-class-convert-from-legacy-pm-ops-to-dev_pm_ops.patch

This patch was dropped because it had testing failures

------------------------------------------------------
From: Shuah Khan <[email protected]>
Subject: drivers/rtc/class: convert from Legacy pm ops to dev_pm_ops

Convert drivers/rtc/class to use dev_pm_ops for power management and remove Legacy PM ops hooks. With this change, rtc class registers suspend/resume callbacks via class->pm (dev_pm_ops) instead of Legacy class->suspend/resume. When __device_suspend() runs call-backs, it will find class->pm ops for the rtc class.

Cc Shuah Khan <[email protected]>
Cc Alessandro Zummo <[email protected]>
Cc Jingoo Han <[email protected]>

---

 drivers/rtc/class.c |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
drivers/rtc/class.c renamed from drivers/rtc/class.c~drivers-rtc-class-convert-from-legacy-pm-ops-to-dev_pm_ops +4 -5
diff -puN drivers/rtc/class.c~drivers-rtc-class-convert-from-legacy-pm-ops-to-dev_pm_ops drivers/rtc/class.c
@@ -47,7 +47,7 @@ int rtc_hctosys_ret = -ENODEV;
 static struct timespec old_rtc, old_system, old_delta;
 
 
-static int rtc_suspend(struct device *dev, pm_message_t mesg)
+static int rtc_suspend(struct device *dev)
 {
 	struct rtc_device	*rtc = to_rtc_device(dev);
 	struct rtc_time		tm;
@@ -135,9 +135,9 @@ static int rtc_resume(struct device *dev
 	return 0;
 }
 
+static SIMPLE_DEV_PM_OPS(rtc_class_dev_pm_ops, rtc_suspend, rtc_resume);
 #else
-#define rtc_suspend	NULL
-#define rtc_resume	NULL
+#define rtc_class_dev_pm_ops	NULL
 #endif
 
 
@@ -336,8 +336,7 @@ static int __init rtc_init(void)
 		pr_err("couldn't create class\n");
 		return PTR_ERR(rtc_class);
 	}
-	rtc_class->suspend = rtc_suspend;
-	rtc_class->resume = rtc_resume;
+	rtc_class->pm = &rtc_class_dev_pm_ops;
 	rtc_dev_init();
 	rtc_sysfs_init(rtc_class);
 	return 0;

_

Patches currently in -mm which might be from [email protected] are

linux-next.patch backlight-convert-from-legacy-pm-ops-to-dev_pm_ops.patch