File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
drivers/pci/controller/dwc Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1534,6 +1534,12 @@ static int qcom_pcie_probe(struct platform_device *pdev)
1534
1534
const struct qcom_pcie_cfg * pcie_cfg ;
1535
1535
int ret ;
1536
1536
1537
+ pcie_cfg = of_device_get_match_data (dev );
1538
+ if (!pcie_cfg || !pcie_cfg -> ops ) {
1539
+ dev_err (dev , "Invalid platform data\n" );
1540
+ return - EINVAL ;
1541
+ }
1542
+
1537
1543
pcie = devm_kzalloc (dev , sizeof (* pcie ), GFP_KERNEL );
1538
1544
if (!pcie )
1539
1545
return - ENOMEM ;
@@ -1553,12 +1559,6 @@ static int qcom_pcie_probe(struct platform_device *pdev)
1553
1559
1554
1560
pcie -> pci = pci ;
1555
1561
1556
- pcie_cfg = of_device_get_match_data (dev );
1557
- if (!pcie_cfg || !pcie_cfg -> ops ) {
1558
- dev_err (dev , "Invalid platform data\n" );
1559
- return - EINVAL ;
1560
- }
1561
-
1562
1562
pcie -> ops = pcie_cfg -> ops ;
1563
1563
pcie -> pipe_clk_need_muxing = pcie_cfg -> pipe_clk_need_muxing ;
1564
1564
You can’t perform that action at this time.
0 commit comments