# \[PATCH 01/61\] gpio: Add devm\_ apis for gpiochip\_add\_data and gpiochip\_remove

- From: Andrew Lunn \<andrew@lunn.ch\>
- Date: 2016-02-22 14:32:49 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2016/02/4690733
- Thread: https://ratatoskr.run/linux-tegra/2016/02/4690677/t.md

```text
> +/**
> + * devm_gpiochip_add_data() - Resource manager piochip_add_data()

                                                  ^
missing g.

> + * @dev: the device pointer on which irq_chip belongs to.
> + * @chip: the chip to register, with chip->base initialized
> + * Context: potentially before irqs will work
> + *
> + * Returns a negative errno if the chip can't be registered, such as
> + * because the chip->base is invalid or already associated with a
> + * different chip.  Otherwise it returns zero as a success code.
> + *
> + * The gpio chip automatically be released when the device is unbound.
                   ^
                    will

    Andrew
```
