diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-02-22 11:08:13 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-02-22 11:09:21 -0300 |
commit | 33c8312458ececd849c28c7182035adfaf85ea31 (patch) | |
tree | 3c5ed599b9cb17824bc73ab2a01a06e365b36ddc /kernels/linux-libre-audit/tpmdd-devel-v3-base-platform-fix-binding-for-drivers-without-probe-callback.patch | |
parent | ba525643db123f3cc03b909b6712253426620269 (diff) | |
download | abslibre-33c8312458ececd849c28c7182035adfaf85ea31.tar.gz abslibre-33c8312458ececd849c28c7182035adfaf85ea31.tar.bz2 abslibre-33c8312458ececd849c28c7182035adfaf85ea31.zip |
linux-libre-audit-4.4.2_gnu-1: updating version
Diffstat (limited to 'kernels/linux-libre-audit/tpmdd-devel-v3-base-platform-fix-binding-for-drivers-without-probe-callback.patch')
-rw-r--r-- | kernels/linux-libre-audit/tpmdd-devel-v3-base-platform-fix-binding-for-drivers-without-probe-callback.patch | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/kernels/linux-libre-audit/tpmdd-devel-v3-base-platform-fix-binding-for-drivers-without-probe-callback.patch b/kernels/linux-libre-audit/tpmdd-devel-v3-base-platform-fix-binding-for-drivers-without-probe-callback.patch deleted file mode 100644 index 691ab79b9..000000000 --- a/kernels/linux-libre-audit/tpmdd-devel-v3-base-platform-fix-binding-for-drivers-without-probe-callback.patch +++ /dev/null @@ -1,24 +0,0 @@ -diff --git a/drivers/base/platform.c b/drivers/base/platform.c -index 1dd6d3b..176b59f 100644 ---- a/drivers/base/platform.c -+++ b/drivers/base/platform.c -@@ -513,10 +513,15 @@ static int platform_drv_probe(struct device *_dev) - return ret; - - ret = dev_pm_domain_attach(_dev, true); -- if (ret != -EPROBE_DEFER && drv->probe) { -- ret = drv->probe(dev); -- if (ret) -- dev_pm_domain_detach(_dev, true); -+ if (ret != -EPROBE_DEFER) { -+ if (drv->probe) { -+ ret = drv->probe(dev); -+ if (ret) -+ dev_pm_domain_detach(_dev, true); -+ } else { -+ /* don't fail if just dev_pm_domain_attach failed */ -+ ret = 0; -+ } - } - - if (drv->prevent_deferred_probe && ret == -EPROBE_DEFER) { |