nvmem: core: fix regression in of_nvmem_cell_get()
NVMEM DT support seems to be totally broken after
commit e888d445ac33 ("nvmem: resolve cells from DT at registration time")
Fix this!
Index used in of_nvmem_cell_get() to find cell is specific to
consumer, It can not be used for searching the cell in provider.
Use device_node instead of this to find the matching cell in device
tree case.
Change-Id: I856c6f71c7da7ab50966dabd700ae1513ea16fa6
Fixes: e888d445ac33 ("nvmem: resolve cells from DT at registration time")
Reported-by:
Niklas Cassel <niklas.cassel@linaro.org>
Signed-off-by:
Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tested-by:
Niklas Cassel <niklas.cassel@linaro.org>
Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 0749aa25af82c690395a96e799cd2c6e54c459cf
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[gkohli@codeaurora: Resolve trivial merge conflicts]
Signed-off-by:
Gaurav Kohli <gkohli@codeaurora.org>
Loading
Please register or sign in to comment