mmc: sdio: Respect all error codes from dev_pm_domain_attach()
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 26 Apr 2018 08:53:08 +0000 (10:53 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 14 May 2018 20:58:45 +0000 (22:58 +0200)
The limitation of being able to check only for -EPROBE_DEFER from
dev_pm_domain_attach() has been removed. Hence let's respect all error
codes and bail out accordingly.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/mmc/core/sdio_bus.c

index 2b32b88949ba40dfb3901cf9588f670b7aad8441..b6d8203e46ebe177de629694f2a15406a6b262eb 100644 (file)
@@ -139,7 +139,7 @@ static int sdio_bus_probe(struct device *dev)
                return -ENODEV;
 
        ret = dev_pm_domain_attach(dev, false);
-       if (ret == -EPROBE_DEFER)
+       if (ret)
                return ret;
 
        /* Unbound SDIO functions are always suspended.