ARM: 6787/1: SPEAr: Reorder #includes in .h & .c files.
[firefly-linux-kernel-4.4.55.git] / arch / arm / mach-spear3xx / spear310.c
index 96a1ab824bac932dd96ff1ca6283f7175d687ae4..ca1109db555655a34853eea562961901b8c675e2 100644 (file)
@@ -13,9 +13,9 @@
 
 #include <linux/ptrace.h>
 #include <asm/irq.h>
+#include <plat/shirq.h>
 #include <mach/generic.h>
 #include <mach/spear.h>
-#include <plat/shirq.h>
 
 /* pad multiplexing support */
 /* muxing registers */
@@ -266,7 +266,7 @@ void __init spear310_init(void)
        /* call spear3xx family common init function */
        spear3xx_init();
 
-       /* shared irq registeration */
+       /* shared irq registration */
        base = ioremap(SPEAR310_SOC_CONFIG_BASE, SPEAR310_SOC_CONFIG_SIZE);
        if (base) {
                /* shirq 1 */
@@ -293,10 +293,11 @@ void __init spear310_init(void)
                if (ret)
                        printk(KERN_ERR "Error registering Shared IRQ 4\n");
        }
-}
 
-void spear310_pmx_init(void)
-{
-       spear_pmx_init(&pmx_driver, SPEAR310_SOC_CONFIG_BASE,
-                       SPEAR310_SOC_CONFIG_SIZE);
+       /* pmx initialization */
+       pmx_driver.base = base;
+       ret = pmx_register(&pmx_driver);
+       if (ret)
+               printk(KERN_ERR "padmux: registeration failed. err no: %d\n",
+                               ret);
 }