Re: [RFC/PATCH] devres: allow adding custom actions to the stack

From: Tejun Heo
Date: Mon Feb 25 2013 - 18:48:18 EST

On Sat, Feb 23, 2013 at 08:05:57PM -0800, Dmitry Torokhov wrote:
> Sometimes drivers need to execute one-off actions in their error handling
> or device teardown paths. An example would be toggling a GPIO line to
> reset the controlled device into predefined state.
> To allow performing such actions when using managed resources let's allow
> adding them to stack/group of devres resources.
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>

Acked-by: Tejun Heo <tj@xxxxxxxxxx>


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at