Re: [PATCH v2] media: dvb: Provide 4 devm variants

2019-07-18 Thread Marc Gonzalez
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

[PATCH v2] media: dvb: Provide 4 devm variants

2019-07-16 Thread Marc Gonzalez
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(