]> git.baikalelectronics.ru Git - kernel.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)
commite5365ae0998b5f9b0be05587b231be7475dc903a
treebbd34a200847671d000deb29a245e1d98011d127
parentbd51beeba654d6c2d2bda4160a807bd12c1311de
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