diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2017-01-31 11:01:03 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-02-08 07:31:49 -0500 |
commit | f3c826ac26766f82769319db68f5b4337d6efc24 (patch) | |
tree | 8ea6eab64c4b1a788ea4a56f3468d151c3656b7f | |
parent | 86e12eac1f7f84b03512ecfa110c48b9204e6286 (diff) |
PM / Domains: Correct comment in irq_safe_dev_in_no_sleep_domain()
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>
-rw-r--r-- | drivers/base/power/domain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index fd2e3e1eac65..b04c14f2b440 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c | |||
@@ -130,7 +130,7 @@ static inline bool irq_safe_dev_in_no_sleep_domain(struct device *dev, | |||
130 | 130 | ||
131 | ret = pm_runtime_is_irq_safe(dev) && !genpd_is_irq_safe(genpd); | 131 | ret = pm_runtime_is_irq_safe(dev) && !genpd_is_irq_safe(genpd); |
132 | 132 | ||
133 | /* Warn once for each IRQ safe dev in no sleep domain */ | 133 | /* Warn once if IRQ safe dev in no sleep domain */ |
134 | if (ret) | 134 | if (ret) |
135 | dev_warn_once(dev, "PM domain %s will not be powered off\n", | 135 | dev_warn_once(dev, "PM domain %s will not be powered off\n", |
136 | genpd->name); | 136 | genpd->name); |