projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d616f56
)
driver core: replace open-coded device_lock_assert()
author
Julian Wiedmann
<jwi@linux.ibm.com>
Wed, 12 May 2021 14:10:54 +0000
(16:10 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 14 May 2021 11:36:41 +0000
(13:36 +0200)
Using the right wrapper makes it easier to associate this assert
statement with the device_[un]lock() helpers.
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Link:
https://lore.kernel.org/r/20210512141054.2180373-1-jwi@linux.ibm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c
patch
|
blob
|
history
diff --git
a/drivers/base/core.c
b/drivers/base/core.c
index 4a8bf8cda52bc77243fcffb8af554309aeed01bb..bfa3536d48dff10fa1ce66029b989c89890d5512 100644
(file)
--- a/
drivers/base/core.c
+++ b/
drivers/base/core.c
@@
-3437,7
+3437,7
@@
bool kill_device(struct device *dev)
* to run while we are tearing out the bus/class/sysfs from
* underneath the device.
*/
-
lockdep_assert_held(&dev->mutex
);
+
device_lock_assert(dev
);
if (dev->p->dead)
return false;