UPSTREAM: nvmem: core: fix error path in nvmem_add_cells()