]> git.baikalelectronics.ru Git - kernel.git/commit
of: fix of_update_property()
authorXiubo Li <Li.Xiubo@freescale.com>
Wed, 22 Jan 2014 05:57:40 +0000 (13:57 +0800)
committerGrant Likely <grant.likely@linaro.org>
Tue, 4 Feb 2014 17:24:25 +0000 (17:24 +0000)
commit6b9341a452722c7e3ef63da8a5a1a8a7aba53eb6
tree446be5e427cc97bf3b4de76cbad996edfd72d005
parentf65f947ed38f48b237c3aa101e63acd22c396148
of: fix of_update_property()

The of_update_property() is intented to update a property in a node
and if the property does not exist, will add it.

The second search of the property is possibly won't be found, that
maybe removed by other thread just before the second search begain.

Using the __of_find_property() and __of_add_property() instead and
move them into lock operations.

Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
Signed-off-by: Grant Likely <grant.likely@linaro.org>
drivers/of/base.c