]> www.infradead.org Git - users/jedix/linux-maple.git/commit
of: Correct property name comparison in __of_add_property()
authorZijun Hu <quic_zijuhu@quicinc.com>
Mon, 24 Feb 2025 14:27:59 +0000 (22:27 +0800)
committerRob Herring (Arm) <robh@kernel.org>
Tue, 25 Feb 2025 19:58:46 +0000 (13:58 -0600)
commitb41838312e24f69d28d1b81c9b9beef55f31215d
tree03f65e018d528f15c1062d214f7c58b44f954286
parentf443029c9a6e9515582ee2dfe7014a9be8a4a98a
of: Correct property name comparison in __of_add_property()

__of_add_property() compares property name by strcmp(), and that is
improper for SPARC which wants strcasecmp().

Fix by using dedicated property name comparison macro of_prop_cmp().

Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Link: https://lore.kernel.org/r/20250224-of_bugfix-v1-3-03640ae8c3a6@quicinc.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
drivers/of/base.c