mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
NVMEM DT support seems to be totally broken after commite888d445ac("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. Fixes:e888d445ac("nvmem: resolve cells from DT at registration time") Reported-by: Niklas Cassel <[email protected]> Signed-off-by: Srinivas Kandagatla <[email protected]> Tested-by: Niklas Cassel <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>