]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Bluetooth: hci_qca: Replace of_device_get_match_data with device_get_match_data
authorRocky Liao <rjliao@codeaurora.org>
Fri, 13 Dec 2019 08:50:45 +0000 (16:50 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 4 Jan 2020 09:41:03 +0000 (10:41 +0100)
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>
drivers/bluetooth/hci_qca.c

index f10bdf8e1fc5deee1336db469aeae27fee8341f5..b602ed01505b697ced9fa893080b001377a8bb87 100644 (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);