diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2013-02-02 18:06:04 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-06-03 02:04:37 -0400 |
commit | 03884f4e6d638a10901e599c9591ffa1530e23c0 (patch) | |
tree | 3953208a75c00d1eb33d3446571685c364999844 /arch/arm/mach-integrator/pci_v3.c | |
parent | 5283456dad4a57fe1940cec4d7a99ac93ee3127f (diff) |
ARM: integrator: move PCI base address grab to probe
This moves the point where the PCIv3 driver grabs the SC base
address to the probe function.
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/mach-integrator/pci_v3.c')
-rw-r--r-- | arch/arm/mach-integrator/pci_v3.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/mach-integrator/pci_v3.c b/arch/arm/mach-integrator/pci_v3.c index f027596d3e84..756a5f233c0c 100644 --- a/arch/arm/mach-integrator/pci_v3.c +++ b/arch/arm/mach-integrator/pci_v3.c | |||
@@ -496,13 +496,6 @@ static void __init pci_v3_preinit(void) | |||
496 | unsigned long flags; | 496 | unsigned long flags; |
497 | unsigned int temp; | 497 | unsigned int temp; |
498 | 498 | ||
499 | /* Remap the Integrator system controller */ | ||
500 | ap_syscon_base = ioremap(INTEGRATOR_SC_BASE, 0x100); | ||
501 | if (!ap_syscon_base) { | ||
502 | pr_err("unable to remap the AP syscon for PCIv3\n"); | ||
503 | return; | ||
504 | } | ||
505 | |||
506 | pcibios_min_mem = 0x00100000; | 499 | pcibios_min_mem = 0x00100000; |
507 | 500 | ||
508 | /* | 501 | /* |
@@ -677,6 +670,13 @@ static int __init pci_v3_probe(struct platform_device *pdev) | |||
677 | { | 670 | { |
678 | int ret; | 671 | int ret; |
679 | 672 | ||
673 | /* Remap the Integrator system controller */ | ||
674 | ap_syscon_base = ioremap(INTEGRATOR_SC_BASE, 0x100); | ||
675 | if (!ap_syscon_base) { | ||
676 | dev_err(&pdev->dev, "unable to remap the AP syscon for PCIv3\n"); | ||
677 | return -ENODEV; | ||
678 | } | ||
679 | |||
680 | ret = devm_request_irq(&pdev->dev, IRQ_AP_V3INT, v3_irq, 0, "V3", NULL); | 680 | ret = devm_request_irq(&pdev->dev, IRQ_AP_V3INT, v3_irq, 0, "V3", NULL); |
681 | if (ret) { | 681 | if (ret) { |
682 | dev_err(&pdev->dev, "unable to grab PCI error interrupt: %d\n", | 682 | dev_err(&pdev->dev, "unable to grab PCI error interrupt: %d\n", |