Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/QE: use arch_initcall to probe QUICC Engine GPIOs

It was discussed that global arch_initcall() is preferred way to probe
QE GPIOs, so let's use it.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>

authored by

Anton Vorontsov and committed by
Kumar Gala
d14b3dd6 2308c954

+4 -2
+4 -1
arch/powerpc/sysdev/qe_lib/gpio.c
··· 12 12 */ 13 13 14 14 #include <linux/kernel.h> 15 + #include <linux/init.h> 15 16 #include <linux/spinlock.h> 16 17 #include <linux/io.h> 17 18 #include <linux/of.h> ··· 103 102 return 0; 104 103 } 105 104 106 - void __init qe_add_gpiochips(void) 105 + static int __init qe_add_gpiochips(void) 107 106 { 108 107 struct device_node *np; 109 108 ··· 144 143 kfree(qe_gc); 145 144 /* try others anyway */ 146 145 } 146 + return 0; 147 147 } 148 + arch_initcall(qe_add_gpiochips);
-1
include/asm-powerpc/qe.h
··· 101 101 #endif 102 102 }; 103 103 104 - extern void __init qe_add_gpiochips(void); 105 104 extern int par_io_init(struct device_node *np); 106 105 extern int par_io_of_config(struct device_node *np); 107 106 #define QE_PIO_DIR_IN 2