Introduce support for Nordic Semiconductor nRF70 series wireless
companion IC.
+ /* vpwr is mandatory, but we want to catch the -ENODEV error. */
+ priv->vpwr = devm_regulator_get_optional(dev, "vpwr");
+ if (IS_ERR(priv->vpwr))
+ return dev_err_probe(dev, PTR_ERR(priv->vpwr),
+ "Unable to find vpwr-supply property");
+
+ priv->vio = devm_regulator_get_optional(dev, "vio");
+ if (IS_ERR(priv->vio) && PTR_ERR(priv->vio) != -ENODEV) {
+ return dev_err_probe(dev, PTR_ERR(priv->vio),
+ "Invalid vio-supply property");
+ }
+
+ irq = of_irq_get_byname(dev->of_node, "host-irq");
+ if (irq <= 0)
+ return dev_err_probe(dev, irq, "Unable to find host-irq\n");
+...
+ mutex_init(&priv->write_lock);
+ mutex_init(&priv->read_lock);