of/reconfig: Always use the same structure for notifiers
The OF_RECONFIG notifier callback uses a different structure depending
on whether it is a node change or a property change. This is silly, and
not very safe. Rework the code to use the same data structure regardless
of the type of notifier.
Signed-off-by:
Grant Likely <grant.likely@linaro.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
Cc: <linuxppc-dev@lists.ozlabs.org>
Showing
- arch/powerpc/mm/numa.c 1 addition, 2 deletionsarch/powerpc/mm/numa.c
- arch/powerpc/platforms/pseries/hotplug-cpu.c 4 additions, 3 deletionsarch/powerpc/platforms/pseries/hotplug-cpu.c
- arch/powerpc/platforms/pseries/hotplug-memory.c 7 additions, 8 deletionsarch/powerpc/platforms/pseries/hotplug-memory.c
- arch/powerpc/platforms/pseries/iommu.c 3 additions, 2 deletionsarch/powerpc/platforms/pseries/iommu.c
- arch/powerpc/platforms/pseries/setup.c 3 additions, 2 deletionsarch/powerpc/platforms/pseries/setup.c
- drivers/crypto/nx/nx-842.c 2 additions, 2 deletionsdrivers/crypto/nx/nx-842.c
- drivers/of/dynamic.c 21 additions, 20 deletionsdrivers/of/dynamic.c
- include/linux/of.h 13 additions, 10 deletionsinclude/linux/of.h
Please register or sign in to comment