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 <rjliao@codeaurora.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
Rocky Liao 2019-12-13 16:50:45 +08:00 committed by Marcel Holtmann
parent 8b17fb9628
commit 9f3565b89c
1 changed files with 1 additions and 1 deletions

View File

@ -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);