From: Ulf Hansson Date: Thu, 26 Apr 2018 08:53:08 +0000 (+0200) Subject: mmc: sdio: Respect all error codes from dev_pm_domain_attach() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=d23fc022c5a15c342d0adcd85bd54516bbf5472c;p=openwrt%2Fstaging%2Fblogic.git mmc: sdio: Respect all error codes from dev_pm_domain_attach() 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 Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/mmc/core/sdio_bus.c b/drivers/mmc/core/sdio_bus.c index 2b32b88949ba..b6d8203e46eb 100644 --- a/drivers/mmc/core/sdio_bus.c +++ b/drivers/mmc/core/sdio_bus.c @@ -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.