powerpc+of: Add of node/property notification chain for adds and removes
authorNathan Fontenot <nfont@linux.vnet.ibm.com>
Tue, 2 Oct 2012 16:57:57 +0000 (16:57 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 15 Nov 2012 01:56:41 +0000 (12:56 +1100)
commit1cf3d8b3d24cd383ddfd5442c83ec5c355ffc2f7
tree0f4790e95f917c6b76d95c88b7b3d67445261893
parentf59497208363f3dd9d62b79b7f7eafc95432de79
powerpc+of: Add of node/property notification chain for adds and removes

This patch moves the notification chain for updates to the device tree
from the powerpc/pseries code to the base OF code. This makes this
functionality available to all architectures.

Additionally the notification chain is updated to allow notifications
for property add/remove/update. To make this work a pointer to a new
struct (of_prop_reconfig) is passed to the routines in the notification chain.
The of_prop_reconfig property contains a pointer to the node containing the
property and a pointer to the property itself. In the case of property
updates, the property pointer refers to the new property.

Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Acked-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
12 files changed:
arch/powerpc/include/asm/pSeries_reconfig.h
arch/powerpc/kernel/prom.c
arch/powerpc/platforms/pseries/dlpar.c
arch/powerpc/platforms/pseries/hotplug-cpu.c
arch/powerpc/platforms/pseries/hotplug-memory.c
arch/powerpc/platforms/pseries/iommu.c
arch/powerpc/platforms/pseries/reconfig.c
arch/powerpc/platforms/pseries/setup.c
drivers/crypto/nx/nx-842.c
drivers/crypto/nx/nx.c
drivers/of/base.c
include/linux/of.h