]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Merge commit 'refs/next/20111220/bluetooth'
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Dec 2011 02:09:16 +0000 (13:09 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Dec 2011 02:09:16 +0000 (13:09 +1100)
1  2 
include/net/bluetooth/hci_core.h
include/net/bluetooth/l2cap.h
net/bluetooth/hci_event.c
net/bluetooth/hci_sock.c
net/bluetooth/hci_sysfs.c
net/bluetooth/l2cap_core.c
net/bluetooth/l2cap_sock.c
net/bluetooth/mgmt.c
net/bluetooth/sco.c

index ea4395f1d26000214027baee3ed401353cb671b3,74f8356b9ff109100debbc643cc8a3439046c408..25c161ab6803a37c8d1349cafe6896d87a61ba1c
@@@ -592,15 -582,15 +586,13 @@@ static inline struct hci_dev *__hci_dev
        return d;
  }
  
 -static inline struct hci_dev *hci_dev_hold(struct hci_dev *d)
 -{
 -      if (try_module_get(d->owner))
 -              return __hci_dev_hold(d);
 -      return NULL;
 -}
 +#define hci_dev_hold(d)                                               \
 +({                                                            \
 +      try_module_get(d->owner) ? __hci_dev_hold(d) : NULL;    \
 +})
  
- #define hci_dev_lock(d)               spin_lock(&d->lock)
- #define hci_dev_unlock(d)     spin_unlock(&d->lock)
- #define hci_dev_lock_bh(d)    spin_lock_bh(&d->lock)
- #define hci_dev_unlock_bh(d)  spin_unlock_bh(&d->lock)
+ #define hci_dev_lock(d)               mutex_lock(&d->lock)
+ #define hci_dev_unlock(d)     mutex_unlock(&d->lock)
  
  struct hci_dev *hci_dev_get(int index);
  struct hci_dev *hci_get_route(bdaddr_t *src, bdaddr_t *dst);
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge