Skip to contentSkip to conversation

Bluetooth: hci_qca: Replace of_device_get_match_data with device_get_match_data

PATCH In review Rocky Liao 2 participants 2 messages Dec 13, 2019 – Dec 17, 2019

Subsystems (2)
lore
Share & tools
lore

Rocky Liao

author
#0 lore raw

PATCH 1/1 Bluetooth: hci_qca: Replace of_device_get_match_data with device_get_match_data

Replace of_device_get_match_data with device_get_match_data to make driver work across platforms.

---
 drivers/bluetooth/hci_qca.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bluetooth/hci_qca.c +1 -1
index f10bdf8e1fc5..b602ed01505b 100644
@@ -1501,7 +1501,7 @@ static int qca_serdev_probe(struct serdev_device *serdev)
 		return -ENOMEM;
 
 	qcadev->serdev_hu.serdev = serdev;
-	data = of_device_get_match_data(&serdev->dev);
+	data = device_get_match_data(&serdev->dev);
 	serdev_device_set_drvdata(serdev, qcadev);
 	device_property_read_string(&serdev->dev, "firmware-name",
 					 &qcadev->firmware_name);
Signature · 1 line
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
maintainer
#1 lore raw

Hi Rocky,

Quoted 7 lines

Replace of_device_get_match_data with device_get_match_data to make driver work across platforms.

---
drivers/bluetooth/hci_qca.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel