Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Bluetooth: hci_ll: drop of_match_ptr for ID table

The driver can match only via the DT table so the table should be always
used and the of_match_ptr does not have any sense (this also allows ACPI
matching via PRP0001, even though it might not be relevant here).

drivers/bluetooth/hci_ll.c:769:34: error: ‘hci_ti_of_match’ defined
but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

authored by

Krzysztof Kozlowski and committed by
Luiz Augusto von Dentz
cd97d47f b8b23001

+1 -1
+1 -1
drivers/bluetooth/hci_ll.c
··· 786 786 static struct serdev_device_driver hci_ti_drv = { 787 787 .driver = { 788 788 .name = "hci-ti", 789 - .of_match_table = of_match_ptr(hci_ti_of_match), 789 + .of_match_table = hci_ti_of_match, 790 790 }, 791 791 .probe = hci_ti_probe, 792 792 .remove = hci_ti_remove,