aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/dwc/pcie-qcom.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/dwc/pcie-qcom.c')
-rw-r--r--drivers/pci/dwc/pcie-qcom.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/drivers/pci/dwc/pcie-qcom.c b/drivers/pci/dwc/pcie-qcom.c
index ce7ba5b7552a..6310c66e265c 100644
--- a/drivers/pci/dwc/pcie-qcom.c
+++ b/drivers/pci/dwc/pcie-qcom.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0
1/* 2/*
2 * Qualcomm PCIe root complex driver 3 * Qualcomm PCIe root complex driver
3 * 4 *
@@ -5,15 +6,6 @@
5 * Copyright 2015 Linaro Limited. 6 * Copyright 2015 Linaro Limited.
6 * 7 *
7 * Author: Stanimir Varbanov <svarbanov@mm-sol.com> 8 * Author: Stanimir Varbanov <svarbanov@mm-sol.com>
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 and
11 * only version 2 as published by the Free Software Foundation.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 */ 9 */
18 10
19#include <linux/clk.h> 11#include <linux/clk.h>
@@ -171,7 +163,7 @@ struct qcom_pcie {
171 union qcom_pcie_resources res; 163 union qcom_pcie_resources res;
172 struct phy *phy; 164 struct phy *phy;
173 struct gpio_desc *reset; 165 struct gpio_desc *reset;
174 struct qcom_pcie_ops *ops; 166 const struct qcom_pcie_ops *ops;
175}; 167};
176 168
177#define to_qcom_pcie(x) dev_get_drvdata((x)->dev) 169#define to_qcom_pcie(x) dev_get_drvdata((x)->dev)
@@ -1234,7 +1226,7 @@ static int qcom_pcie_probe(struct platform_device *pdev)
1234 1226
1235 pcie->pci = pci; 1227 pcie->pci = pci;
1236 1228
1237 pcie->ops = (struct qcom_pcie_ops *)of_device_get_match_data(dev); 1229 pcie->ops = of_device_get_match_data(dev);
1238 1230
1239 pcie->reset = devm_gpiod_get_optional(dev, "perst", GPIOD_OUT_LOW); 1231 pcie->reset = devm_gpiod_get_optional(dev, "perst", GPIOD_OUT_LOW);
1240 if (IS_ERR(pcie->reset)) 1232 if (IS_ERR(pcie->reset))