HomeFreeBSD

Change ofw_gpiobus_destroy_devinfo() to unmap the GPIO pins and then

Description

Change ofw_gpiobus_destroy_devinfo() to unmap the GPIO pins and then
rework the code a little bit to use this function consistently to cleanup
all the changes made as part of the probe phase.

This fixes an issue where a FDT child node without a matching driver could
leave the GPIO pins mapped and prevent the further use of them.

Details

Provenance
loosAuthored on
Parents
rS279620: Add a bus_probe_nomatch() method for gpiobus/ofw_gpiobus.
Branches
Unknown
Tags
Unknown

Event Timeline