[PATCH 2/3] ASoC: pxa2xx: push gpio usage into arch code
Mark Brown
broonie at kernel.org
Mon Apr 27 18:17:54 PDT 2026
On Mon, Apr 27, 2026 at 04:46:30PM +0200, Arnd Bergmann wrote:
> + if (cpu_is_pxa27x()) {
> /* Assert reset using GPIOD_OUT_HIGH, because reset is GPIO_ACTIVE_LOW */
> rst_gpio = devm_gpiod_get(&dev->dev, "reset", GPIOD_OUT_HIGH);
> - if (IS_ERR(rst_gpio)) {
> - ret = PTR_ERR(rst_gpio);
> - if (ret == -ENOENT)
> - reset_gpio = -1;
> - else if (ret)
> - return ret;
> - } else {
> - reset_gpio = desc_to_gpio(rst_gpio);
> - }
> - } else {
> - if (cpu_is_pxa27x())
> - reset_gpio = 113;
> - }
> + if (IS_ERR(rst_gpio))
> + rst_gpio = NULL;
Unlikely to actually fire but this now squashes -EPROBE_DEFER - the
earlier code propagated any error other than -ENOENT.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20260428/0cfa94f1/attachment.sig>
More information about the linux-arm-kernel
mailing list