aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/sysdev/qe_lib/gpio.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/qe_lib/gpio.c b/arch/powerpc/sysdev/qe_lib/gpio.c
index c712e245dc4c..8e5a0bc36d0b 100644
--- a/arch/powerpc/sysdev/qe_lib/gpio.c
+++ b/arch/powerpc/sysdev/qe_lib/gpio.c
@@ -12,6 +12,7 @@
12 */ 12 */
13 13
14#include <linux/kernel.h> 14#include <linux/kernel.h>
15#include <linux/init.h>
15#include <linux/spinlock.h> 16#include <linux/spinlock.h>
16#include <linux/io.h> 17#include <linux/io.h>
17#include <linux/of.h> 18#include <linux/of.h>
@@ -102,7 +103,7 @@ static int qe_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val)
102 return 0; 103 return 0;
103} 104}
104 105
105void __init qe_add_gpiochips(void) 106static int __init qe_add_gpiochips(void)
106{ 107{
107 struct device_node *np; 108 struct device_node *np;
108 109
@@ -143,4 +144,6 @@ err:
143 kfree(qe_gc); 144 kfree(qe_gc);
144 /* try others anyway */ 145 /* try others anyway */
145 } 146 }
147 return 0;
146} 148}
149arch_initcall(qe_add_gpiochips);