[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZN93L/9vBdBvZMA9@smile.fi.intel.com>
Date: Fri, 18 Aug 2023 16:50:39 +0300
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Kartik <kkartik@...dia.com>
Cc: thierry.reding@...il.com, jonathanh@...dia.com, sumitg@...dia.com,
arnd@...db.de, pshete@...dia.co, digetx@...il.com,
petlozup@...dia.com, windhl@....com, frank.li@...o.com,
robh@...nel.org, stefank@...dia.com, pdeschrijver@...dia.com,
linux-tegra@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/6] soc/tegra: fuse: Add function to register nvmem
On Fri, Aug 18, 2023 at 03:00:24PM +0530, Kartik wrote:
> Add helper function tegra_fuse_nvmem_register() to register
> Tegra Fuse nvmem and use it in tegra_fuse_probe(). So, this can be
> shared between device-tree and ACPI probe, which is to be introduced
> later.
...
> + fuse->nvmem = devm_nvmem_register(dev, &nvmem);
> + if (IS_ERR(fuse->nvmem)) {
> + err = PTR_ERR(fuse->nvmem);
> + dev_err(dev, "failed to register NVMEM device: %d\n",
> + err);
> + return err;
return dev_err_probe();
> + }
> +
> + return 0;
> +}
...
Seems it comes from the original code, so consider this as a suggestion for
an additional improvement.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists