]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
toshiba_bluetooth: Clean up *_add function and disable BT device at removal
authorAzael Avalos <coproscefalo@gmail.com>
Thu, 26 Mar 2015 20:56:06 +0000 (14:56 -0600)
committerDarren Hart <dvhart@linux.intel.com>
Thu, 26 Mar 2015 21:15:07 +0000 (14:15 -0700)
commit18b8696b66d79024649c895d4a5b7da4f268300e
treebbd34a200847671d000deb29a245e1d98011d127
parentbb2ea96b4840fb244e74ed7c470a3ec88e5b084a
toshiba_bluetooth: Clean up *_add function and disable BT device at removal

This patch cleans the toshiba_bluetooth_add function by using the
recently introduced function toshiba_bluetooth_present, simplifying
its code and returning appropriate error values.

Also, disables the BT device at the removal of the driver, by using
the function toshiba_bluetooth_disable.

Signed-off-by: Azael Avalos <coproscefalo@gmail.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/toshiba_bluetooth.c