From: Geert Uytterhoeven Date: Wed, 30 Nov 2016 12:24:56 +0000 (+0100) Subject: PM / Domains: Do not print PM domain add error message if EPROBE_DEFER X-Git-Tag: v4.10-rc1~152^2~6^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=34994692216b5af2f05858324c3b4863cbaf41cf;p=platform%2Fkernel%2Flinux-exynos.git PM / Domains: Do not print PM domain add error message if EPROBE_DEFER EPROBE_DEFER is not an error, hence printing an error message like renesas_irqc e61c0000.interrupt-controller: failed to add to PM domain always-on: -517 may confuse the user. Suppress the error message in case of EPROBE_DEFER to fix this. Reported-by: Yoshihiro Shimoda Signed-off-by: Geert Uytterhoeven Reviewed-by: Simon Horman Acked-by: Kevin Hilman Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 7b4d41f..46e7f60 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -2031,8 +2031,9 @@ int genpd_dev_pm_attach(struct device *dev) mutex_unlock(&gpd_list_lock); if (ret < 0) { - dev_err(dev, "failed to add to PM domain %s: %d", - pd->name, ret); + if (ret != -EPROBE_DEFER) + dev_err(dev, "failed to add to PM domain %s: %d", + pd->name, ret); goto out; }