mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
umc-bus.c: fix usage of device_trylock
Fix usage of device_trylock. It has the same semantics of mutex_trylock, so it returns 1 if the lock has been acquired successfully. Signed-off-by: Claudio Scordino <[email protected]> Signed-off-by: Bruno Morelli <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
6f602912c9
commit
b717727ef2
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ int umc_controller_reset(struct umc_dev *umc)
|
|||
struct device *parent = umc->dev.parent;
|
||||
int ret = 0;
|
||||
|
||||
if (device_trylock(parent))
|
||||
if (!device_trylock(parent))
|
||||
return -EAGAIN;
|
||||
ret = device_for_each_child(parent, parent, umc_bus_pre_reset_helper);
|
||||
if (ret >= 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue