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

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
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -333,6 +333,11 @@ int of_hwspin_lock_get_id(struct device_node *np, int index)
	if (ret)
		return ret;

	if (!of_device_is_available(args.np)) {
		ret = -ENOENT;
		goto out;
	}

	/* Find the hwspinlock device: we need its base_id */
	ret = -EPROBE_DEFER;
	rcu_read_lock();