Merge branches 'pm-domains' and 'pm-cpuidle' into linux-next
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 12 Sep 2016 12:49:03 +0000 (14:49 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 12 Sep 2016 12:49:03 +0000 (14:49 +0200)
* pm-domains:
  PM / Domains: Always enable debugfs support if available

* pm-cpuidle:
  ARM: cpuidle: Fix error return code

drivers/base/power/domain.c
drivers/cpuidle/cpuidle-arm.c

index a1f2aff33997e6558fe650e9f343d81613a192c6..058c8b6d2871ca6687148b84b7fa924377362f3d 100644 (file)
@@ -1636,7 +1636,7 @@ EXPORT_SYMBOL_GPL(genpd_dev_pm_attach);
 
 /***        debugfs support        ***/
 
-#ifdef CONFIG_PM_ADVANCED_DEBUG
+#ifdef CONFIG_DEBUG_FS
 #include <linux/pm.h>
 #include <linux/device.h>
 #include <linux/debugfs.h>
@@ -1784,4 +1784,4 @@ static void __exit pm_genpd_debug_exit(void)
        debugfs_remove_recursive(pm_genpd_debugfs_dir);
 }
 __exitcall(pm_genpd_debug_exit);
-#endif /* CONFIG_PM_ADVANCED_DEBUG */
+#endif /* CONFIG_DEBUG_FS */
index 4ba3d3fe142f3ae4dc7039c98b7eeaa4b3aac78d..f440d385ed3471a3abd0ff5ce63d133c5f46785f 100644 (file)
@@ -121,6 +121,7 @@ static int __init arm_idle_init(void)
                dev = kzalloc(sizeof(*dev), GFP_KERNEL);
                if (!dev) {
                        pr_err("Failed to allocate cpuidle device\n");
+                       ret = -ENOMEM;
                        goto out_fail;
                }
                dev->cpu = cpu;
This page took 0.028078 seconds and 5 git commands to generate.