Bluetooth: hci_intel: Cleanup the device probe code
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Wed, 30 Sep 2015 13:28:52 +0000 (16:28 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 1 Oct 2015 06:55:42 +0000 (08:55 +0200)
commit23270e160dd5d240dbf73722c1df9ff3044d7bc9
tree60af77b4318951a3cfbbaa8811f8652c8782c8f2
parent4a2fa2b8a861b095f6d495dc006e9d47df177594
Bluetooth: hci_intel: Cleanup the device probe code

There is some unneeded code in "hci_intel" probing. First
acpi_match_device() call is needless as driver/platform/acpi core code has
already done the matching before calling the probe and the driver does not
use the returned pointer to matching _HID other than checking is it NULL.

Then tree wide grep for "hci_intel" doesn't reveal that there is any code
registering this platform device so it looks this device is always backed
with ACPI companion so also ACPI_HANDLE() test can be removed.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_intel.c