]> git.baikalelectronics.ru Git - kernel.git/commit
of: Improve prom_update_property() function
authorDong Aisheng <dong.aisheng@linaro.org>
Wed, 11 Jul 2012 05:16:37 +0000 (15:16 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 11 Jul 2012 05:26:51 +0000 (15:26 +1000)
commit15527e650368cda5d162d76611a9523495e687c8
treeb10a01706dd433b93353600a00491ce62e385ec9
parentd079bc9ce7e34f9b041dd64c42785dd4666bfdda
of: Improve prom_update_property() function

prom_update_property() currently fails if the property doesn't
actually exist yet which isn't what we want. Change to add-or-update
instead of update-only, then we can remove a lot duplicated lines.

Suggested-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Dong Aisheng <dong.aisheng@linaro.org>
Acked-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/85xx/p1022_ds.c
arch/powerpc/platforms/pseries/mobility.c
arch/powerpc/platforms/pseries/reconfig.c
drivers/of/base.c
fs/proc/proc_devtree.c
include/linux/of.h