summaryrefslogtreecommitdiff
path: root/rust/helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'rust/helpers.c')
-rw-r--r--rust/helpers.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/rust/helpers.c b/rust/helpers.c
index 3930262fb689..ab39c0a81c7a 100644
--- a/rust/helpers.c
+++ b/rust/helpers.c
@@ -321,6 +321,12 @@ void rust_helper_writeq_relaxed(u64 value, volatile void __iomem *addr)
EXPORT_SYMBOL_GPL(rust_helper_writeq_relaxed);
#endif
+int rust_helper_devm_add_action(struct device *dev, void (*action)(void *), void *data)
+{
+ return devm_add_action(dev, action, data);
+}
+EXPORT_SYMBOL_GPL(rust_helper_devm_add_action);
+
/*
* `bindgen` binds the C `size_t` type as the Rust `usize` type, so we can
* use it in contexts where Rust expects a `usize` like slice (array) indices.