Re: [net-next PATCH v11 5/9] mfd: an8855: Add support for Airoha AN8855 Switch MFD

Vladimir Oltean
2024-12-10T21:07:32Z

On Mon, Dec 09, 2024 at 03:18:13PM -0800, Jakub Kicinski wrote:
> On Mon, 9 Dec 2024 14:44:22 +0100 Christian Marangi wrote:
> > + regmap = devm_regmap_init(priv->dev, NULL, priv,
> > + &an8855_regmap_config);
> > + if (IS_ERR(regmap))
> ^^^^^^^^^^^^^^
> > + dev_err_probe(priv->dev, PTR_ERR(priv->dev),
> ^^^^^^^^^^^^^^^^^^
> > + "regmap initialization failed\n");
>
> wrong ptr?
> --
> pw-bot: cr

Also, why continue execution if devm_regmap_init() failed?