> > > @@ -89,6 +281,13 @@ static int intel_dg_mtd_probe(struct > auxiliary_device *aux_dev, > > goto err; > > } > > > > + ret = intel_dg_nvm_init(nvm, device); > > + if (ret < 0) { > > + dev_err(device, "cannot initialize nvm\n"); > > + ret = -ENODEV; > > Why setting to -ENODEV? > You are right, for ret < 0 we can keep error code. Will fix in the next revision. - - Thanks, Sasha > > + goto err; > > + } > > + > > dev_set_drvdata(&aux_dev->dev, nvm); > > > > return 0;