hwspinlock: ignore disabled device
PATCH 1/1 hwspinlock: ignore disabled device
Do not wait for hwspinlock device registration if it is not available for use.
Signed-off-by Fabien Dessenne <[email protected]>
--- drivers/hwspinlock/hwspinlock_core.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/hwspinlock/hwspinlock_core.c +3 -0
@@ -333,6 +333,9 @@ int of_hwspin_lock_get_id(struct device_node *np, int index)if (ret)return ret; +if (!of_device_is_available (args.np)) +return -ENOENT ; +/* Find the hwspinlock device: we need its base_id */ ret = -EPROBE_DEFER ;rcu_read_lock ();
Signature · 1 line
2.7.4