Bluetooth: Fix clearing of dev_class when powering down
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 22 Feb 2012 20:01:41 +0000 (22:01 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 23 Feb 2012 11:07:00 +0000 (13:07 +0200)
commit09b3c3fbbee9aef8ac5d9148ae61aae35766b2a6
tree512ec3fe2cde99425beb218babdb42674eb6b35d
parent27fcc362297b8e838a929c947b82eabb3f4b7591
Bluetooth: Fix clearing of dev_class when powering down

We should assume a value of 0 for the device class when powered off.
The appropriate place to do this is in hci_dev_do_close().

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