static int ath10k_snoc_probe(struct platform_device *pdev)
 {
        const struct ath10k_snoc_drv_priv *drv_data;
-       const struct of_device_id *of_id;
        struct ath10k_snoc *ar_snoc;
        struct device *dev;
        struct ath10k *ar;
        int ret;
        u32 i;
 
-       of_id = of_match_device(ath10k_snoc_dt_match, &pdev->dev);
-       if (!of_id) {
-               dev_err(&pdev->dev, "failed to find matching device tree id\n");
+       dev = &pdev->dev;
+       drv_data = device_get_match_data(dev);
+       if (!drv_data) {
+               dev_err(dev, "failed to find matching device tree id\n");
                return -EINVAL;
        }
 
-       drv_data = of_id->data;
-       dev = &pdev->dev;
-
        ret = dma_set_mask_and_coherent(dev, drv_data->dma_mask);
        if (ret) {
                dev_err(dev, "failed to set dma mask: %d\n", ret);