Since commit 37e6bee7e5 ("gpiolib: Add support for GPIO "hog" nodes") barebox can handle hog-gpios. To work correctly the pinctrl driver must be initialised first. Reorder all core_initcall's so the pinctrl driver can be called first. find drivers/gpio/ -type f -name gpio-*.c -exec sed -i \ 's/core_initcall/postcore_initcall/' "{}" +; Signed-off-by: Marco Felsch <m.felsch@xxxxxxxxxxxxxx> --- drivers/gpio/gpio-dw.c | 2 +- drivers/gpio/gpio-imx.c | 2 +- drivers/gpio/gpio-mxs.c | 2 +- drivers/gpio/gpio-vf610.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/gpio-dw.c b/drivers/gpio/gpio-dw.c index f145c01232..b81e6a75c5 100644 --- a/drivers/gpio/gpio-dw.c +++ b/drivers/gpio/gpio-dw.c @@ -199,4 +199,4 @@ static int __init dwgpio_init(void) { return platform_driver_register(&dwgpio_driver); } -core_initcall(dwgpio_init); +postcore_initcall(dwgpio_init); diff --git a/drivers/gpio/gpio-imx.c b/drivers/gpio/gpio-imx.c index d618e60119..2827e11e73 100644 --- a/drivers/gpio/gpio-imx.c +++ b/drivers/gpio/gpio-imx.c @@ -222,4 +222,4 @@ static int imx_gpio_add(void) platform_driver_register(&imx_gpio_driver); return 0; } -core_initcall(imx_gpio_add); +postcore_initcall(imx_gpio_add); diff --git a/drivers/gpio/gpio-mxs.c b/drivers/gpio/gpio-mxs.c index b2b3ad3ac6..ef78873ad2 100644 --- a/drivers/gpio/gpio-mxs.c +++ b/drivers/gpio/gpio-mxs.c @@ -183,4 +183,4 @@ static int mxs_gpio_add(void) platform_driver_register(&mxs_gpio_driver); return 0; } -core_initcall(mxs_gpio_add); +postcore_initcall(mxs_gpio_add); diff --git a/drivers/gpio/gpio-vf610.c b/drivers/gpio/gpio-vf610.c index 2aff62be59..ca2bf9ac69 100644 --- a/drivers/gpio/gpio-vf610.c +++ b/drivers/gpio/gpio-vf610.c @@ -161,4 +161,4 @@ static int __init gpio_vf610_init(void) { return platform_driver_register(&vf610_gpio_driver); } -core_initcall(gpio_vf610_init); +postcore_initcall(gpio_vf610_init); -- 2.19.0 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox