Skip to content

Commit ef04d28

Browse files
vireshkrobherring
authored andcommitted
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: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Viresh Kumar <[email protected]> Link: https://lore.kernel.org/r/73dea4f4b389359a8beadbc77b00eb26853f9ab5.1692691032.git.viresh.kumar@linaro.org Signed-off-by: Rob Herring <[email protected]>
1 parent ae23f14 commit ef04d28

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/of/platform.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ const struct of_device_id of_default_bus_match_table[] = {
3333
{} /* Empty terminated list */
3434
};
3535

36-
static const struct of_device_id of_skipped_node_table[] = {
37-
{ .compatible = "operating-points-v2", },
38-
{} /* Empty terminated list */
39-
};
40-
4136
/**
4237
* of_find_device_by_node - Find the platform_device associated with a node
4338
* @np: Pointer to device tree node
@@ -89,6 +84,11 @@ void of_device_unregister(struct platform_device *ofdev)
8984
EXPORT_SYMBOL(of_device_unregister);
9085

9186
#ifdef CONFIG_OF_ADDRESS
87+
static const struct of_device_id of_skipped_node_table[] = {
88+
{ .compatible = "operating-points-v2", },
89+
{} /* Empty terminated list */
90+
};
91+
9292
/*
9393
* The following routines scan a subtree and registers a device for
9494
* each applicable node.

0 commit comments

Comments
 (0)