Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d14b3dd6 authored by Anton Vorontsov's avatar Anton Vorontsov Committed by Kumar Gala
Browse files

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: default avatarAnton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 2308c954
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -12,6 +12,7 @@
 */
 */


#include <linux/kernel.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/spinlock.h>
#include <linux/spinlock.h>
#include <linux/io.h>
#include <linux/io.h>
#include <linux/of.h>
#include <linux/of.h>
@@ -102,7 +103,7 @@ static int qe_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val)
	return 0;
	return 0;
}
}


void __init qe_add_gpiochips(void)
static int __init qe_add_gpiochips(void)
{
{
	struct device_node *np;
	struct device_node *np;


@@ -143,4 +144,6 @@ void __init qe_add_gpiochips(void)
		kfree(qe_gc);
		kfree(qe_gc);
		/* try others anyway */
		/* try others anyway */
	}
	}
	return 0;
}
}
arch_initcall(qe_add_gpiochips);
+0 −1
Original line number Original line Diff line number Diff line
@@ -101,7 +101,6 @@ struct qe_pio_regs {
#endif
#endif
};
};


extern void __init qe_add_gpiochips(void);
extern int par_io_init(struct device_node *np);
extern int par_io_init(struct device_node *np);
extern int par_io_of_config(struct device_node *np);
extern int par_io_of_config(struct device_node *np);
#define QE_PIO_DIR_IN	2
#define QE_PIO_DIR_IN	2