]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/nvram: Search for nvram using compatible
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 14 Apr 2011 22:32:00 +0000 (22:32 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 20 Apr 2011 07:01:20 +0000 (17:01 +1000)
commitc7f91196b3c6355420420ad7e87a566f8381675c
treedf32fe6ab367b3384042b80d2043fb92d2c56a4b
parente24da37c8fce4f448e5eb3c9743c8f55d148dd47
powerpc/nvram: Search for nvram using compatible

As well as searching for nodes with type = "nvram", search for nodes
that have compatible = "nvram". This can't be converted into a single
call to of_find_compatible_node() with a non-NULL type, because that
searches for a node that has _both_ type & compatible = "nvram".

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/sysdev/mmio_nvram.c