]> Git Repo - linux.git/commitdiff
ieee802154: ca8210: Remove stray gpiod_unexport() call
authorAndy Shevchenko <[email protected]>
Sun, 28 May 2023 14:09:38 +0000 (17:09 +0300)
committerMiquel Raynal <[email protected]>
Tue, 6 Jun 2023 18:47:48 +0000 (20:47 +0200)
There is no gpiod_export() and gpiod_unexport() looks pretty much stray.
The gpiod_export() and gpiod_unexport() shouldn't be used in the code,
GPIO sysfs is deprecated. That said, simply drop the stray call.

Signed-off-by: Andy Shevchenko <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Link: https://lore.kernel.org/linux-wpan/[email protected]
drivers/net/ieee802154/ca8210.c

index a2d242034220f60eb4dcd7fa83a1df5373297b52..f9b10e84de067a1509ede1e95d72ee1f785f6df2 100644 (file)
@@ -2855,7 +2855,6 @@ static int ca8210_interrupt_init(struct spi_device *spi)
        );
        if (ret) {
                dev_crit(&spi->dev, "request_irq %d failed\n", pdata->irq_id);
-               gpiod_unexport(gpio_to_desc(pdata->gpio_irq));
                gpio_free(pdata->gpio_irq);
        }
 
This page took 0.055206 seconds and 4 git commands to generate.