mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
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 <ulf.hansson@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
e6a20b6cd2
commit
d23fc022c5
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue