HomeFreeBSD

uart: uart_getenv: check for NULL class last, not first

Description

uart: uart_getenv: check for NULL class last, not first

This allows one to specify dt:XXXX when the default class isn't compiled
into the kernel. It's not an error to not have a class until we're done
parsing the spec, so defer checking until then.

Sponsored by: Netflix
Reviewed by: adrian, andrew, markj
Differential Revision: https://reviews.freebsd.org/D47078

Details

Provenance
impAuthored on Mon, Oct 14, 9:58 PM
Reviewer
adrian
Differential Revision
D47078: uart: uart_getenv: check for NULL class last, not first
Parents
rG8190dfbb1d58: uart/ns8250: Add support for computing rclk
Branches
Unknown
Tags
Unknown