Skip to content
Commit 59eaeba6 authored by Michal Simek's avatar Michal Simek Committed by Greg Kroah-Hartman
Browse files

of: base: Change logic in of_alias_get_alias_list()

Check compatible string first before setting up bit in bitmap to also
cover cases that allocated bitfield is not big enough.
Show warning about it but let driver to continue to work with allocated
bitfield to keep at least some devices (included console which
is commonly close to serial0) to work.

Fixes: b1078c35 ("of: base: Introduce of_alias_get_alias_list() to check alias IDs")
Fixes: ae1cca3f

 ("serial: uartps: Change uart ID port allocation")
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7acf79b6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment