]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
Removes OF_UNITTEST dependency on OF_DYNAMIC config symbol
authorGaurav Minocha <gaurav.minocha.os@gmail.com>
Sun, 11 Jan 2015 07:19:51 +0000 (23:19 -0800)
committerRob Herring <robh@kernel.org>
Tue, 13 Jan 2015 19:58:02 +0000 (13:58 -0600)
commit3ce04b4a9fdc30b6ec651e477dd08fee4e48f9aa
treef865fb235fc96de0780c2cc3c6dc888d6abadbc1
parent9a4305bde41e87a2c56b560ebd1783cf3fbbcea3
Removes OF_UNITTEST dependency on OF_DYNAMIC config symbol

This patch intends to remove the unittests dependency on
the functions defined in dynamic.c. So, rather than calling
of_attach_node defined in dynamic.c, minimal functionality
required to attach a new node is re-defined in unittest.c.
Also, now after executing the tests the test data is not
removed from the device tree so there is no need to call
of_detach_node.

Tested with and without OF_DYNAMIC enabled on ppc, arm and
x86

Signed-off-by: Gaurav Minocha <gaurav.minocha.os@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/Kconfig
drivers/of/unittest.c