]> Git Repo - linux.git/commit - drivers/of/dynamic.c
of: Move dynamic node fixups out of powerpc and into common code
authorGrant Likely <[email protected]>
Wed, 16 Jul 2014 05:25:43 +0000 (23:25 -0600)
committerGrant Likely <[email protected]>
Wed, 23 Jul 2014 23:05:46 +0000 (17:05 -0600)
commita25095d451ece23b1fef34474f3230100db7aa05
tree1144ef8101664c7242e27d62b179ec7d9438cefb
parent6162dbe49a451f96431a23b4821f05e3bd925bc1
of: Move dynamic node fixups out of powerpc and into common code

PowerPC does an odd thing with dynamic nodes. It uses a notifier to
catch new node additions and set some of the values like name and type.
This makes no sense since that same code can be put directly into
of_attach_node(). Besides, all dynamic node users need this, not just
powerpc. Fix this problem by moving the logic out of arch/powerpc and
into drivers/of/dynamic.c.

It is also important to remove this notifier because we want to move the
firing of notifiers from before the tree is modified to after so that
the receiver gets a consistent view of the tree, but that is
incompatible with notifiers that modify the node.

Signed-off-by: Grant Likely <[email protected]>
Cc: Nathan Fontenot <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
arch/powerpc/kernel/prom.c
drivers/of/base.c
drivers/of/dynamic.c
drivers/of/of_private.h
This page took 0.056712 seconds and 4 git commands to generate.