Skip to content
Commit 263dbd3c authored by Rob Herring (Arm)'s avatar Rob Herring (Arm) Committed by Jassi Brar
Browse files

mailbox: Use of_property_match_string() instead of open-coding



Use of_property_match_string() instead of open-coding the search. With
this, of_get_property() can be removed as there is no need to check for
"mbox-names" presence first.

This is part of a larger effort to remove callers of of_get_property()
and similar functions. of_get_property() leaks the DT property data
pointer which is a problem for dynamically allocated nodes which may
be freed.

Signed-off-by: default avatarRob Herring (Arm) <robh@kernel.org>
Signed-off-by: default avatarJassi Brar <jassisinghbrar@gmail.com>
parent dc09f007
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment