Commit ef04d280 authored by Viresh Kumar's avatar Viresh Kumar Committed by Rob Herring

of: Move of_skipped_node_table within #ifdef CONFIG_OF_ADDRESS

The `struct of_skipped_node_table` is used only when CONFIG_OF_ADDRESS
is defined, move it within the #ifdef/#endif to avoid warnings on
configurations where CONFIG_OF_ADDRESS isn't defined.
Reported-by: default avatarkernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202308212037.YopffWSU-lkp@intel.com/Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Link: https://lore.kernel.org/r/73dea4f4b389359a8beadbc77b00eb26853f9ab5.1692691032.git.viresh.kumar@linaro.orgSigned-off-by: default avatarRob Herring <robh@kernel.org>
parent ae23f141
......@@ -33,11 +33,6 @@ const struct of_device_id of_default_bus_match_table[] = {
{} /* Empty terminated list */
};
static const struct of_device_id of_skipped_node_table[] = {
{ .compatible = "operating-points-v2", },
{} /* Empty terminated list */
};
/**
* of_find_device_by_node - Find the platform_device associated with a node
* @np: Pointer to device tree node
......@@ -89,6 +84,11 @@ void of_device_unregister(struct platform_device *ofdev)
EXPORT_SYMBOL(of_device_unregister);
#ifdef CONFIG_OF_ADDRESS
static const struct of_device_id of_skipped_node_table[] = {
{ .compatible = "operating-points-v2", },
{} /* Empty terminated list */
};
/*
* The following routines scan a subtree and registers a device for
* each applicable node.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment