driver core: Provide an wrapper around the mutex to do lockdep warnings
authorKonrad Rzeszutek Wilk <[email protected]>
Wed, 3 Dec 2014 21:40:27 +0000 (16:40 -0500)
committerDavid Vrabel <[email protected]>
Thu, 4 Dec 2014 12:41:59 +0000 (12:41 +0000)
commitac8010221d3fa8697151dfe9a1bb2c504adc68c1
tree6f29ae15005f635809f6b7be8f964cfce29001ec
parente8801a7418dda995a70f30874aef77e6d064828e
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]>
drivers/xen/xen-pciback/pci_stub.c
include/linux/device.h