]> git.karo-electronics.de Git - karo-tx-linux.git/commit
bluetooth: macroize two small inlines to avoid module.h
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 15 Sep 2011 21:56:39 +0000 (17:56 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 29 Sep 2011 15:17:19 +0000 (11:17 -0400)
commita27576f4d5d0c1c9a81cdcda331d1dccbd5e9eae
treeab01ada7dd94fcbd777b9299c37e79a3b022cb48
parent7a5231c31a0aaeeb94c8c87fcecc5dd61ae219c3
bluetooth: macroize two small inlines to avoid module.h

These two small inlines make calls to try_module_get() and
module_put() which would force us to keep module.h present
within yet another common include header.  We can avoid this
by turning them into macros.  The hci_dev_hold construct
is patterned off of raw_spin_trylock_irqsave() in spinlock.h

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
include/net/bluetooth/hci_core.h