]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make the GPIO children attach to the first unit available and not only to
authorloos <loos@FreeBSD.org>
Tue, 28 Oct 2014 18:33:59 +0000 (18:33 +0000)
committerloos <loos@FreeBSD.org>
Tue, 28 Oct 2014 18:33:59 +0000 (18:33 +0000)
commit7dd1b73c3843393e02fb47a35ad7b9bf4dac7c2f
treed80aa712cc7a8f76cb28507a8696a187f0a27495
parentae007aae20de488c994d204240aa025651e5ca22
Make the GPIO children attach to the first unit available and not only to
unit 0.

It seems that this 'simplification' was copied to all GPIO drivers in tree.

This fix a bug where a GPIO controller could fail to attach its children
(gpioc and gpiobus) if another GPIO driver attach first.
15 files changed:
sys/arm/allwinner/a10_gpio.c
sys/arm/broadcom/bcm2835/bcm2835_gpio.c
sys/arm/freescale/imx/imx_gpio.c
sys/arm/freescale/vybrid/vf_gpio.c
sys/arm/lpc/lpc_gpio.c
sys/arm/rockchip/rk30xx_gpio.c
sys/arm/samsung/exynos/exynos5_pad.c
sys/arm/ti/ti_gpio.c
sys/arm/xilinx/zy7_gpio.c
sys/arm/xscale/ixp425/avila_gpio.c
sys/arm/xscale/ixp425/cambria_gpio.c
sys/mips/atheros/ar71xx_gpio.c
sys/mips/cavium/octeon_gpio.c
sys/mips/rt305x/rt305x_gpio.c
sys/powerpc/wii/wii_gpio.c