|
@@ -171,7 +171,7 @@ struct qcom_pcie {
|
|
|
union qcom_pcie_resources res;
|
|
|
struct phy *phy;
|
|
|
struct gpio_desc *reset;
|
|
|
- struct qcom_pcie_ops *ops;
|
|
|
+ const struct qcom_pcie_ops *ops;
|
|
|
};
|
|
|
|
|
|
#define to_qcom_pcie(x) dev_get_drvdata((x)->dev)
|
|
@@ -1234,7 +1234,7 @@ static int qcom_pcie_probe(struct platform_device *pdev)
|
|
|
|
|
|
pcie->pci = pci;
|
|
|
|
|
|
- pcie->ops = (struct qcom_pcie_ops *)of_device_get_match_data(dev);
|
|
|
+ pcie->ops = of_device_get_match_data(dev);
|
|
|
|
|
|
pcie->reset = devm_gpiod_get_optional(dev, "perst", GPIOD_OUT_LOW);
|
|
|
if (IS_ERR(pcie->reset))
|