From: Rocky Liao Date: Fri, 13 Dec 2019 08:50:45 +0000 (+0800) Subject: Bluetooth: hci_qca: Replace of_device_get_match_data with device_get_match_data X-Git-Tag: block-5.6-2020-02-05~43^2~12^2~31 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=9f3565b89c43d2a0082bccbc3918f2ebae739533;p=linux-block.git 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 Signed-off-by: Marcel Holtmann --- 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);