[PATCH 0/5] Fix driver core registration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patchset correctly integrates the "struct device" in a hci_dev. It removes
the refcnt field and instead relies on the internal refcount of device objects.
It also removes the "destruct" callback as it is really not needed. The bus is
responsible of freeing devices after a driver unregistered itself.

This also fixes several bugs in the current implementation. Each patch should be
pretty straightforward. It all works well on my machine.

Regards
David

David Herrmann (5):
  Bluetooth: Remove obsolete hci-destruct callback
  Bluetooth: Correctly acquire module reference
  Bluetooth: Remove HCI-owner field
  Bluetooth: Correctly take hci_dev->dev refcount
  Bluetooth: Remove __hci_dev_put/hold

 drivers/bluetooth/bfusb.c        |   13 +------------
 drivers/bluetooth/bluecard_cs.c  |    8 --------
 drivers/bluetooth/bpa10x.c       |   17 +++--------------
 drivers/bluetooth/bt3c_cs.c      |    8 --------
 drivers/bluetooth/btmrvl_main.c  |    6 ------
 drivers/bluetooth/btsdio.c       |   13 +------------
 drivers/bluetooth/btuart_cs.c    |    8 --------
 drivers/bluetooth/btusb.c        |   17 +++--------------
 drivers/bluetooth/btwilink.c     |   10 ----------
 drivers/bluetooth/dtl1_cs.c      |    8 --------
 drivers/bluetooth/hci_ldisc.c    |   13 +------------
 drivers/bluetooth/hci_vhci.c     |    9 +--------
 include/net/bluetooth/hci_core.h |   30 +++++-------------------------
 net/bluetooth/hci_core.c         |   15 +++++++++------
 net/bluetooth/hci_sysfs.c        |    8 +++++++-
 15 files changed, 31 insertions(+), 152 deletions(-)

-- 
1.7.8.1

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux