summaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2016-11-10 15:52:15 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-11-11 01:37:05 +0100
commit44cae7d5a1b4a4e4db24eae478a9cfba0ea2b9d2 (patch)
tree566fb60df92e0f03c5eaaed32db4c43bb60b9f5b /drivers/base
parenta1fee00dc95644e0590b4f1a3755c9f6b1243b3a (diff)
PM / Domains: Fix a warning message
The first argument of WARN() is the condition, followed by the message. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Pavel Machek <pavel@ucw.cz> Acked-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/power/domain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c
index 661737c2bae0..7b4d41ff9506 100644
--- a/drivers/base/power/domain.c
+++ b/drivers/base/power/domain.c
@@ -1297,7 +1297,7 @@ static int genpd_add_subdomain(struct generic_pm_domain *genpd,
* powered on/off in that context.
*/
if (!genpd_is_irq_safe(genpd) && genpd_is_irq_safe(subdomain)) {
- WARN("Parent %s of subdomain %s must be IRQ safe\n",
+ WARN(1, "Parent %s of subdomain %s must be IRQ safe\n",
genpd->name, subdomain->name);
return -EINVAL;
}