]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Only manage ofw gpio providers on ofw systems
authorAndrew Turner <andrew@FreeBSD.org>
Thu, 10 Sep 2020 09:42:37 +0000 (09:42 +0000)
committerAndrew Turner <andrew@FreeBSD.org>
Thu, 10 Sep 2020 09:42:37 +0000 (09:42 +0000)
commitf5e4e9153ce8268157be828bd7edda1c58072d49
treee434627c8c0ae2f3c00f4c95d46afc6b56ae950f
parent365ed84f28e42a41067a90c98e5243aae1790f6d
Only manage ofw gpio providers on ofw systems

On arm64 we may boot via ACPI. In this case we will still try to manage the
gpio providers as if we are using FDT. Fix this by checking if the FDT node
is valid before registering a cross reference.

Sponsored by: Innovate UK
sys/dev/gpio/ofw_gpiobus.c