diff options
-rw-r--r-- | drivers/pci/host/pcie-spear13xx.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/pci/host/pcie-spear13xx.c b/drivers/pci/host/pcie-spear13xx.c index 85f594e1708f..63f869f953e1 100644 --- a/drivers/pci/host/pcie-spear13xx.c +++ b/drivers/pci/host/pcie-spear13xx.c | |||
@@ -269,7 +269,8 @@ static struct pcie_host_ops spear13xx_pcie_host_ops = { | |||
269 | .host_init = spear13xx_pcie_host_init, | 269 | .host_init = spear13xx_pcie_host_init, |
270 | }; | 270 | }; |
271 | 271 | ||
272 | static int add_pcie_port(struct pcie_port *pp, struct platform_device *pdev) | 272 | static int spear13xx_add_pcie_port(struct pcie_port *pp, |
273 | struct platform_device *pdev) | ||
273 | { | 274 | { |
274 | struct device *dev = &pdev->dev; | 275 | struct device *dev = &pdev->dev; |
275 | int ret; | 276 | int ret; |
@@ -352,7 +353,7 @@ static int __init spear13xx_pcie_probe(struct platform_device *pdev) | |||
352 | if (of_property_read_bool(np, "st,pcie-is-gen1")) | 353 | if (of_property_read_bool(np, "st,pcie-is-gen1")) |
353 | spear13xx_pcie->is_gen1 = true; | 354 | spear13xx_pcie->is_gen1 = true; |
354 | 355 | ||
355 | ret = add_pcie_port(pp, pdev); | 356 | ret = spear13xx_add_pcie_port(pp, pdev); |
356 | if (ret < 0) | 357 | if (ret < 0) |
357 | goto fail_clk; | 358 | goto fail_clk; |
358 | 359 | ||
@@ -382,11 +383,11 @@ static struct platform_driver spear13xx_pcie_driver __initdata = { | |||
382 | 383 | ||
383 | /* SPEAr13xx PCIe driver does not allow module unload */ | 384 | /* SPEAr13xx PCIe driver does not allow module unload */ |
384 | 385 | ||
385 | static int __init pcie_init(void) | 386 | static int __init spear13xx_pcie_init(void) |
386 | { | 387 | { |
387 | return platform_driver_register(&spear13xx_pcie_driver); | 388 | return platform_driver_register(&spear13xx_pcie_driver); |
388 | } | 389 | } |
389 | module_init(pcie_init); | 390 | module_init(spear13xx_pcie_init); |
390 | 391 | ||
391 | MODULE_DESCRIPTION("ST Microelectronics SPEAr13xx PCIe host controller driver"); | 392 | MODULE_DESCRIPTION("ST Microelectronics SPEAr13xx PCIe host controller driver"); |
392 | MODULE_AUTHOR("Pratyush Anand <pratyush.anand@st.com>"); | 393 | MODULE_AUTHOR("Pratyush Anand <pratyush.anand@st.com>"); |