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

From: Marc Gonzalez
Date: Thu Jul 18 2019 - 05:38:13 EST


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 rc ? : devm_add_action_or_reset(dev, unregister_adapter, adap);

Doh! This is incorrect. (Face palm) Will spin a v3.

Regards.