PM / Domains: Do not print PM domain add error message if EPROBE_DEFER
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 30 Nov 2016 12:24:56 +0000 (13:24 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 Nov 2016 21:39:18 +0000 (22:39 +0100)
commit34994692216b5af2f05858324c3b4863cbaf41cf
tree90f9a1634ac7b3735b5227384f5c0d54f9df59ec
parent44cae7d5a1b4a4e4db24eae478a9cfba0ea2b9d2
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 <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Acked-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c