aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/uwb
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/uwb')
-rw-r--r--drivers/uwb/umc-bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/uwb/umc-bus.c b/drivers/uwb/umc-bus.c
index 82a84d53120f..5c5b3fc9088a 100644
--- a/drivers/uwb/umc-bus.c
+++ b/drivers/uwb/umc-bus.c
@@ -63,7 +63,7 @@ int umc_controller_reset(struct umc_dev *umc)
63 struct device *parent = umc->dev.parent; 63 struct device *parent = umc->dev.parent;
64 int ret = 0; 64 int ret = 0;
65 65
66 if (device_trylock(parent)) 66 if (!device_trylock(parent))
67 return -EAGAIN; 67 return -EAGAIN;
68 ret = device_for_each_child(parent, parent, umc_bus_pre_reset_helper); 68 ret = device_for_each_child(parent, parent, umc_bus_pre_reset_helper);
69 if (ret >= 0) 69 if (ret >= 0)