mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
driver core: Provide an wrapper around the mutex to do lockdep warnings
Instead of open-coding it in drivers that want to double check that their functions are indeed holding the device lock. Signed-off-by: Konrad Rzeszutek Wilk <[email protected]> Suggested-by: David Vrabel <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: David Vrabel <[email protected]>
This commit is contained in:
parent
e8801a7418
commit
ac8010221d
2 changed files with 6 additions and 1 deletions
|
|
@ -278,7 +278,7 @@ void pcistub_put_pci_dev(struct pci_dev *dev)
|
|||
/* Cleanup our device
|
||||
* (so it's ready for the next domain)
|
||||
*/
|
||||
lockdep_assert_held(&dev->dev.mutex);
|
||||
device_lock_assert(&dev->dev);
|
||||
__pci_reset_function_locked(dev);
|
||||
pci_restore_state(dev);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue