aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRocky Liao <[email protected]>2019-12-13 16:50:45 +0800
committerMarcel Holtmann <[email protected]>2020-01-04 10:41:03 +0100
commit9f3565b89c43d2a0082bccbc3918f2ebae739533 (patch)
tree442d983f3cdfec6a77c7759dd1a75d3507f4e48c
parent8b17fb9628dd91cf48b8d40fba4b4f7499bf2ee7 (diff)
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. Signed-off-by: Rocky Liao <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
-rw-r--r--drivers/bluetooth/hci_qca.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c
index f10bdf8e1fc5..b602ed01505b 100644
--- a/drivers/bluetooth/hci_qca.c
+++ b/drivers/bluetooth/hci_qca.c
@@ -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);