};
 
 static const struct of_device_id gcc_sdm845_match_table[] = {
-       { .compatible = "qcom,gcc-sdm845" },
+       { .compatible = "qcom,gcc-sdm845", .data = &gcc_sdm845_desc },
        { }
 };
 MODULE_DEVICE_TABLE(of, gcc_sdm845_match_table);
 
 static int gcc_sdm845_probe(struct platform_device *pdev)
 {
+       const struct qcom_cc_desc *gcc_desc;
        struct regmap *regmap;
        int ret;
 
        if (ret)
                return ret;
 
-       return qcom_cc_really_probe(pdev, &gcc_sdm845_desc, regmap);
+       gcc_desc = of_device_get_match_data(&pdev->dev);
+       return qcom_cc_really_probe(pdev, gcc_desc, regmap);
 }
 
 static struct platform_driver gcc_sdm845_driver = {