Commit 8c60a141 authored by Julian Wiedmann's avatar Julian Wiedmann Committed by Greg Kroah-Hartman
Browse files

driver core: replace open-coded device_lock_assert()



Using the right wrapper makes it easier to associate this assert
statement with the device_[un]lock() helpers.

Signed-off-by: default avatarJulian Wiedmann <jwi@linux.ibm.com>
Link: https://lore.kernel.org/r/20210512141054.2180373-1-jwi@linux.ibm.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d616f56d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;