summaryrefslogtreecommitdiff
path: root/rust/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'rust/kernel')
-rw-r--r--rust/kernel/opp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/kernel/opp.rs b/rust/kernel/opp.rs
index c2bdc11f3999..a566fc3e7dcb 100644
--- a/rust/kernel/opp.rs
+++ b/rust/kernel/opp.rs
@@ -575,6 +575,7 @@ impl<T: ConfigOps + Default> Config<T> {
/// frequency.
///
/// ```
+/// # #![cfg(CONFIG_OF)]
/// use kernel::clk::Hertz;
/// use kernel::cpumask::Cpumask;
/// use kernel::device::Device;
@@ -582,7 +583,6 @@ impl<T: ConfigOps + Default> Config<T> {
/// use kernel::opp::Table;
/// use kernel::types::ARef;
///
-/// #[cfg(CONFIG_OF)]
/// fn get_table(dev: &ARef<Device>, mask: &mut Cpumask, freq: Hertz) -> Result<Table> {
/// let mut opp_table = Table::from_of_cpumask(dev, mask)?;
///