From patchwork Tue Jan 31 16:01:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 92992 Delivered-To: patches@linaro.org Received: by 10.182.3.34 with SMTP id 2csp1901138obz; Tue, 31 Jan 2017 08:01:17 -0800 (PST) X-Received: by 10.25.160.211 with SMTP id j202mr8167247lfe.18.1485878477866; Tue, 31 Jan 2017 08:01:17 -0800 (PST) Return-Path: Received: from mail-lf0-x230.google.com (mail-lf0-x230.google.com. [2a00:1450:4010:c07::230]) by mx.google.com with ESMTPS id a21si10513699lfb.276.2017.01.31.08.01.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jan 2017 08:01:17 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::230 as permitted sender) client-ip=2a00:1450:4010:c07::230; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::230 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by mail-lf0-x230.google.com with SMTP id x1so127011568lff.0 for ; Tue, 31 Jan 2017 08:01:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=pHSPPvbNrP3OcETsyKBo8uOWDTYZLoqZbJsdUWVBYEc=; b=OE+YiDoEJemzFX+2upXGr1kdd7695xuL69UfzEM+hyjEc71Fnda1mgmMRwidD22yFX 39DTrJ/mbOhI9tQG//d+B3OobqTHgNRkVhx7paaqFmY8V8UXdeN8Q8Wu/9UjMabgg/h9 jF8cIOcCwGdwfIuL4sepuolBRD+Wt0rBIe8oQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=pHSPPvbNrP3OcETsyKBo8uOWDTYZLoqZbJsdUWVBYEc=; b=qbTkZGMA1zMUPuS4AyndybmI8G1OpEHuhQ2bzx9SAz26SB9sBa2aTn0rs2m92vYrNx 38Mo4gG9HBVj0a2YfIECJbIJ40oDQ/IUrluarnSdqlrCnYkeia0LVomGZhB4SN9w794f 2gowiQSPOGp+UPC7/rbMQl3peK3kJAAx02Xg1xkOtlyBrqWbd3+Ik3cDkDHZDJFMLJuG A71teFXjvSirf8j99hsLCZ8DhSWgBkkHso6lobN6JFrTFRLQKljlM6Xa7iNPWROQVshG Jj9cmg4GU6oPsoa0j9GI4PhBBrpkJPhU3rzXftrlRgyr/fT1Lpf+tVHpju5bM6hDbqtG YZFg== X-Gm-Message-State: AIkVDXIoKRuTqE+I/tUOgjR5m2bOKVoTNbQ5xbviyMRlwgZMAIcRE+qyoWTAL9ZSud3JLZSZknc= X-Received: by 10.25.137.193 with SMTP id l184mr8022786lfd.31.1485878477294; Tue, 31 Jan 2017 08:01:17 -0800 (PST) Return-Path: Received: from localhost.localdomain ([155.4.221.67]) by smtp.gmail.com with ESMTPSA id p11sm4685483lfd.20.2017.01.31.08.01.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 Jan 2017 08:01:16 -0800 (PST) From: Ulf Hansson To: "Rafael J. Wysocki" , Ulf Hansson , linux-pm@vger.kernel.org Cc: Len Brown , Pavel Machek , Kevin Hilman , Geert Uytterhoeven , Lina Iyer Subject: [PATCH] PM / Domains: Correct comment in irq_safe_dev_in_no_sleep_domain() Date: Tue, 31 Jan 2017 17:01:03 +0100 Message-Id: <1485878463-1672-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 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 Signed-off-by: Ulf Hansson --- drivers/base/power/domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 Acked-by: Lina Iyer diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 6b23d82..271e208 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, 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);