powerpc: Rework interrupt_init_cpu()
authorTom Rini <trini@konsulko.com>
Mon, 14 Aug 2017 02:44:37 +0000 (22:44 -0400)
committerTom Rini <trini@konsulko.com>
Sat, 26 Aug 2017 18:56:08 +0000 (14:56 -0400)
The function interrupt_init_cpu() is given an int return type but does
not return anything but 0.  Rework this to be a void function.

Signed-off-by: Tom Rini <trini@konsulko.com>
Acked-by: Mario Six <mario.six@gdsys.cc>
arch/powerpc/cpu/mpc83xx/interrupts.c
arch/powerpc/cpu/mpc85xx/interrupts.c
arch/powerpc/cpu/mpc86xx/interrupts.c
arch/powerpc/cpu/mpc8xx/interrupts.c
arch/powerpc/include/asm/ppc.h
arch/powerpc/lib/interrupts.c

index 668aa020889ebe9f22f5eaa5ad606f50d96ce027..50503b4d2c0f150fac67876673ca3ce7a84b6bdc 100644 (file)
@@ -20,7 +20,7 @@ struct irq_action {
        ulong count;
 };
 
-int interrupt_init_cpu (unsigned *decrementer_count)
+void interrupt_init_cpu (unsigned *decrementer_count)
 {
        volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
@@ -29,8 +29,6 @@ int interrupt_init_cpu (unsigned *decrementer_count)
        /* Enable e300 time base */
 
        immr->sysconf.spcr |= 0x00400000;
-
-       return 0;
 }
 
 
index cf730c5c53cb8858e421ef5171a02dc4d7072225..b92549000fbc369c006af3829f40acf32fe65754 100644 (file)
@@ -20,7 +20,7 @@
 #include <post.h>
 #endif
 
-int interrupt_init_cpu(unsigned *decrementer_count)
+void interrupt_init_cpu(unsigned *decrementer_count)
 {
        ccsr_pic_t __iomem *pic = (void *)CONFIG_SYS_MPC8xxx_PIC_ADDR;
 
@@ -77,8 +77,6 @@ int interrupt_init_cpu(unsigned *decrementer_count)
 #ifdef CONFIG_POST
        post_word_store(post_word);
 #endif
-
-       return (0);
 }
 
 /* Install and free a interrupt handler. Not implemented yet. */
index a6db0baab33f8cc2c7a74f3257f75c2c64350e6c..81874790ff35323efe76e5f50a291c63e0d559c4 100644 (file)
@@ -23,7 +23,7 @@
 #include <post.h>
 #endif
 
-int interrupt_init_cpu(unsigned *decrementer_count)
+void interrupt_init_cpu(unsigned *decrementer_count)
 {
        volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
        volatile ccsr_pic_t *pic = &immr->im_pic;
@@ -73,8 +73,6 @@ int interrupt_init_cpu(unsigned *decrementer_count)
 #ifdef CONFIG_POST
        post_word_store(post_word);
 #endif
-
-       return 0;
 }
 
 /*
index e8e287a13fa8323fbc2347e9ad9604f1ac0b5954..846148ab9867e125be242f56909bb57eb07fe99b 100644 (file)
@@ -30,7 +30,7 @@ static void cpm_interrupt(void *regs);
 
 /************************************************************************/
 
-int interrupt_init_cpu(unsigned *decrementer_count)
+void interrupt_init_cpu(unsigned *decrementer_count)
 {
        immap_t __iomem *immr = (immap_t __iomem *)CONFIG_SYS_IMMR;
 
@@ -41,8 +41,6 @@ int interrupt_init_cpu(unsigned *decrementer_count)
 
        /* Configure CPM interrupts */
        cpm_interrupt_init();
-
-       return 0;
 }
 
 /************************************************************************/
index 850fe93f979832422ae69fbd6abceafb329d36ae..5e0aa08be936e1b44b099ae6a9083c31610f6d9f 100644 (file)
@@ -122,7 +122,7 @@ static inline void set_msr(unsigned long msr)
 void print_reginfo(void);
 #endif
 
-int interrupt_init_cpu(unsigned *);
+void interrupt_init_cpu(unsigned *);
 void timer_interrupt_cpu(struct pt_regs *);
 unsigned long search_exception_table(unsigned long addr);
 
index 46fa18c63fb0bced53366522242b912eaa566e4f..e8784aa16e9cd5149611feee31d6371310d8bf50 100644 (file)
@@ -63,13 +63,8 @@ int disable_interrupts (void)
 
 int interrupt_init (void)
 {
-       int ret;
-
        /* call cpu specific function from $(CPU)/interrupts.c */
-       ret = interrupt_init_cpu (&decrementer_count);
-
-       if (ret)
-               return ret;
+       interrupt_init_cpu (&decrementer_count);
 
        set_dec (decrementer_count);