Re: [PATCH] gpio: tb10x: Drop unneeded free_irq() call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Axel Lin <axel.lin@xxxxxxxxxx> wrote on 05/28/2015 11:26:10 AM:
> 
> Current code uses devm_request_irq() in .probe, so drop the unneeded
> free_irq() call in .remove.
> 
> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxxx>

Acked-by: Christian Ruppert <christian.ruppert@xxxxxxxxxxx>

> ---
>  drivers/gpio/gpio-tb10x.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/gpio/gpio-tb10x.c b/drivers/gpio/gpio-tb10x.c
> index 46b8961..12c99d9 100644
> --- a/drivers/gpio/gpio-tb10x.c
> +++ b/drivers/gpio/gpio-tb10x.c
> @@ -292,7 +292,6 @@ static int tb10x_gpio_remove(struct platform_device 
*pdev)
>                 BIT(tb10x_gpio->gc.ngpio) - 1, 0, 0);
>        kfree(tb10x_gpio->domain->gc);
>        irq_domain_remove(tb10x_gpio->domain);
> -      free_irq(tb10x_gpio->irq, tb10x_gpio);
>     }
>     gpiochip_remove(&tb10x_gpio->gc);
> 
> -- 
> 2.1.0
> 
> 
> 


--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux