Commit fbd7330c authored by Fabien Dessenne's avatar Fabien Dessenne Committed by Bjorn Andersson

hwspinlock: ignore disabled device

Do not wait for hwspinlock device registration if it is not available
for use.
Acked-by: default avatarSuman Anna <s-anna@ti.com>
Signed-off-by: default avatarFabien Dessenne <fabien.dessenne@st.com>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent d4d98bba
...@@ -333,6 +333,11 @@ int of_hwspin_lock_get_id(struct device_node *np, int index) ...@@ -333,6 +333,11 @@ int of_hwspin_lock_get_id(struct device_node *np, int index)
if (ret) if (ret)
return ret; return ret;
if (!of_device_is_available(args.np)) {
ret = -ENOENT;
goto out;
}
/* Find the hwspinlock device: we need its base_id */ /* Find the hwspinlock device: we need its base_id */
ret = -EPROBE_DEFER; ret = -EPROBE_DEFER;
rcu_read_lock(); rcu_read_lock();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment