On Tue, 24 Mar 2026 00:39:16 +0000
John Groves <[email protected]> wrote:

> From: John Groves <[email protected]>
> 
> Add a new dax_set_ops() function that allows drivers to set the
> dax_operations after the dax_device has been allocated. This is needed
> for fsdev_dax where the operations need to be set during probe and
> cleared during unbind.
> 
> The fsdev driver uses devm_add_action_or_reset() for cleanup consistency,
> avoiding the complexity of mixing devm-managed resources with manual
> cleanup in a remove() callback. This ensures cleanup happens automatically
> in the correct reverse order when the device is unbound.
> 
> Reviewed-by: Dave Jiang <[email protected]>
> Signed-off-by: John Groves <[email protected]>
Reviewed-by: Jonathan Cameron <[email protected]>



Reply via email to