On 16/07/2019 10:56, Marc Gonzalez wrote:
> +int devm_dvb_register_adapter(struct device *dev, struct dvb_adapter *adap,
> + const char *name, struct module *module, short *adapter_nums)
> +{
> + int rc = dvb_register_adapter(adap, name, module, dev, adapter_nums);
> + return r
Provide devm variants for automatic resource release on device removal.
Makes error-handling in probe() much simpler, thus less error-prone.
And once all resources are devmanaged, remove() is no longer needed.
Signed-off-by: Marc Gonzalez
---
Changes from v1:
x Simplify devm_dvb_register_adapter(
2 matches
Mail list logo