]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Allow child classes of simplebus to call attach directly
authorandrew <andrew@FreeBSD.org>
Mon, 3 Aug 2020 16:26:10 +0000 (16:26 +0000)
committerandrew <andrew@FreeBSD.org>
Mon, 3 Aug 2020 16:26:10 +0000 (16:26 +0000)
commitfe431d86bf80088b6f7b0d1965fae3e8dd0413d0
treec327be33abe4953411439182d2bf3c4ad610d7fd
parente3d6727b7d25dbaed9cdfc05f33cc3f5da33a471
Allow child classes of simplebus to call attach directly

Reduce code duplication when a bus is subclassed from simplebus by allowing
them to call simplebus_attach directly. This is useful when the child bus
will just implement the same calls.

As not all children will expect to have a ranges property, e.g. the
Raspberry Pi firmware, allow this property to be missing.

Reviewed by: manu
Sponsored by: Innovate UK
Differential Revision: https://reviews.freebsd.org/D25925
sys/dev/fdt/simplebus.c
sys/dev/fdt/simplebus.h