of: make for_each_property_of_node() available to to !OF
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Sun, 3 Mar 2024 10:48:53 +0000 (11:48 +0100)
committerRob Herring <robh@kernel.org>
Mon, 4 Mar 2024 21:03:59 +0000 (15:03 -0600)
commitad8ee969d7e34dd310a618d798cc6d8fe4f04464
treec01ed56bac4beafd0fa08ed978b602f6ddcfa490
parentaaef9cdc4bdcf45db729a4ce7ebf3fda3336e092
of: make for_each_property_of_node() available to to !OF

for_each_property_of_node() is a macro and so doesn't have a stub inline
function for !OF. Move it out of the relevant #ifdef to make it available
to all users.

Fixes: 611cad720148 ("dt: add of_alias_scan and of_alias_get_id")
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Link: https://lore.kernel.org/r/20240303104853.31511-1-brgl@bgdev.pl
Signed-off-by: Rob Herring <robh@kernel.org>
include/linux/of.h