]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Do not reallocate driver softc for uart unnecessarily.
authorbr <br@FreeBSD.org>
Thu, 17 Nov 2016 16:06:53 +0000 (16:06 +0000)
committerbr <br@FreeBSD.org>
Thu, 17 Nov 2016 16:06:53 +0000 (16:06 +0000)
commit62b6ab7be67d6992c64c034e82b52c112b6d29cc
tree29be2e079fa7d1498c768af8d6c0ff7e518e7f5b
parent0ab35954e204affcc16caeef143ec23d1a35f657
Do not reallocate driver softc for uart unnecessarily.

Do not assume that all uart drivers use uart_softc structure as is.
Some do a sensible thing and do declare their uart class and driver
properly and arrive into uart_bus_attach with suitably sized softc.

Submitted by: kan
Sponsored by: DARPA, AFRL
sys/dev/uart/uart_core.c