07 Aug, 2012

1 commit


13 Feb, 2012

3 commits

  • The linux device model provides dev_set/get_drvdata so we can use this
    to save private driver data.
    This also removes several unnecessary casts.

    Signed-off-by: David Herrmann
    Acked-by: Marcel Holtmann
    Signed-off-by: Johan Hedberg

    David Herrmann
     
  • After unregistering an hci_dev object a bluetooth driver does not have
    any callbacks in the hci_dev structure left over. Therefore, there is no
    need to keep a reference to the module.

    Previously, we needed this to protect the hci-destruct callback.
    However, this callback is no longer available so we do not need this
    owner field, anymore. Drivers now call hci_unregister_dev() and they
    are done with the object.

    Signed-off-by: David Herrmann
    Acked-by: Marcel Holtmann
    Signed-off-by: Johan Hedberg

    David Herrmann
     
  • Instead of waiting for the hdev object to get freed we now free the
    private driver-internal data on SDIO shutdown. This allows us to remove
    the obsolete hci-destruct callback and free our data object right away
    after calling hci_unregister_dev(). The HCI-core does not call any
    callbacks after this so we are never called again and can safely exit
    the module.

    Signed-off-by: David Herrmann
    Acked-by: Marcel Holtmann
    Signed-off-by: Johan Hedberg

    David Herrmann
     

12 Oct, 2010

1 commit


27 Feb, 2010

1 commit


30 Nov, 2008

2 commits


27 Oct, 2008

1 commit


05 Feb, 2008

1 commit


22 Oct, 2007

1 commit