public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] Bluetooth: hci_ll: drop of_match_ptr for ID table
@ 2023-03-11 11:13 Krzysztof Kozlowski
  2023-03-11 11:13 ` [PATCH 2/4] Bluetooth: btmrvl_sdio: mark OF related data as maybe unused Krzysztof Kozlowski
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-11 11:13 UTC (permalink / raw)
  To: Marcel Holtmann, Johan Hedberg, Luiz Augusto von Dentz, Sean Wang,
	Matthias Brugger, AngeloGioacchino Del Regno, linux-bluetooth,
	linux-kernel, linux-mediatek, linux-arm-kernel
  Cc: Krzysztof Kozlowski

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>
---
 drivers/bluetooth/hci_ll.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/bluetooth/hci_ll.c b/drivers/bluetooth/hci_ll.c
index 5abc01a2acf7..4a0b5c3160c2 100644
--- a/drivers/bluetooth/hci_ll.c
+++ b/drivers/bluetooth/hci_ll.c
@@ -786,7 +786,7 @@ MODULE_DEVICE_TABLE(of, hci_ti_of_match);
 static struct serdev_device_driver hci_ti_drv = {
 	.driver		= {
 		.name	= "hci-ti",
-		.of_match_table = of_match_ptr(hci_ti_of_match),
+		.of_match_table = hci_ti_of_match,
 	},
 	.probe	= hci_ti_probe,
 	.remove	= hci_ti_remove,
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-03-14 23:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-11 11:13 [PATCH 1/4] Bluetooth: hci_ll: drop of_match_ptr for ID table Krzysztof Kozlowski
2023-03-11 11:13 ` [PATCH 2/4] Bluetooth: btmrvl_sdio: mark OF related data as maybe unused Krzysztof Kozlowski
2023-03-11 11:13 ` [PATCH 3/4] Bluetooth: hci_qca: " Krzysztof Kozlowski
2023-03-11 11:13 ` [PATCH 4/4] Bluetooth: btmtkuart: " Krzysztof Kozlowski
2023-03-14 23:10 ` [PATCH 1/4] Bluetooth: hci_ll: drop of_match_ptr for ID table patchwork-bot+bluetooth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox