diff options
Diffstat (limited to 'drivers/pci/host/pcie-iproc-platform.c')
-rw-r--r-- | drivers/pci/host/pcie-iproc-platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/host/pcie-iproc-platform.c b/drivers/pci/host/pcie-iproc-platform.c index 6030dc1644d2..a3de087976b3 100644 --- a/drivers/pci/host/pcie-iproc-platform.c +++ b/drivers/pci/host/pcie-iproc-platform.c @@ -59,7 +59,6 @@ static int iproc_pcie_pltfm_probe(struct platform_device *pdev) pcie->dev = dev; pcie->type = (enum iproc_pcie_type)of_id->data; - platform_set_drvdata(pdev, pcie); ret = of_address_to_resource(np, 0, ®); if (ret < 0) { @@ -124,6 +123,7 @@ static int iproc_pcie_pltfm_probe(struct platform_device *pdev) pci_free_resource_list(&res); + platform_set_drvdata(pdev, pcie); return ret; } |