PM / Domains: Correct comment in irq_safe_dev_in_no_sleep_domain()
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 31 Jan 2017 16:01:03 +0000 (17:01 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 8 Feb 2017 12:31:49 +0000 (13:31 +0100)
The earlier comment stated that the dev_warn_once() was going to be printed
once per device. Let's fix that, as dev_warn_once() is printed only once,
no matter of the device.

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Lina Iyer <lina.iyer@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c

index fd2e3e1eac655961ba36c059e0620657a8f7a900..b04c14f2b4406967ef6b7f514accb560bd9fa4be 100644 (file)
@@ -130,7 +130,7 @@ static inline bool irq_safe_dev_in_no_sleep_domain(struct device *dev,
 
        ret = pm_runtime_is_irq_safe(dev) && !genpd_is_irq_safe(genpd);
 
-       /* Warn once for each IRQ safe dev in no sleep domain */
+       /* Warn once if IRQ safe dev in no sleep domain */
        if (ret)
                dev_warn_once(dev, "PM domain %s will not be powered off\n",
                                genpd->name);