From: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx> We need to remove the ida mapping when returning from nvmem_register() with an error. Signed-off-by: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx> ---