Bluetooth: Enforce providing hdev->send driver callback
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 6 Jul 2014 13:50:27 +0000 (15:50 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Sun, 6 Jul 2014 14:11:37 +0000 (17:11 +0300)
commit74292d5ac289ff5ec8b565889aaeab332e709099
treea29dd1f047ee57b57c85c438e4573309c9cbf28c
parentcdc52faac5f341beaff036828b9459f7c8dd7296
Bluetooth: Enforce providing hdev->send driver callback

The hdev->send driver callback is mandatory to be provided by a driver
before calling hci_register_dev. So enforce it and return EINVAL in
case it is not available.

All existing drivers are providing this callback anyway, so this is
just an extra sanity check.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/hci_core.c