summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorAlexander Shiyan <eagle.alexander923@gmail.com>2022-06-08 08:12:44 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2022-06-10 09:50:46 +0200
commit1486d703bf232da6999d2d42c6cdeb614b26f670 (patch)
tree0d05a372d10e19f032148502a435abfe55e2fdb6 /common
parent0da0ad96d735e60c5a8ed18152bac4816d72b615 (diff)
downloadbarebox-1486d703bf232da6999d2d42c6cdeb614b26f670.tar.gz
barebox-1486d703bf232da6999d2d42c6cdeb614b26f670.tar.xz
common: reset_source: Remove of_get_reset_source_priority()
of_get_reset_source_priority() has no users, so it can be safely removed. Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com> Link: https://lore.barebox.org/20220608051244.2318-1-eagle.alexander923@gmail.com Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/reset_source.c20
1 files changed, 3 insertions, 17 deletions
diff --git a/common/reset_source.c b/common/reset_source.c
index 3554cbd0fb..774ea5fc8c 100644
--- a/common/reset_source.c
+++ b/common/reset_source.c
@@ -76,7 +76,9 @@ EXPORT_SYMBOL(reset_source_set_prinst);
void reset_source_set_device(struct device_d *dev, enum reset_src_type st)
{
- int priority = of_get_reset_source_priority(dev->device_node);
+ unsigned int priority = RESET_SOURCE_DEFAULT_PRIORITY;
+
+ of_property_read_u32(dev->device_node, "reset-source-priority", &priority);
__reset_source_set(dev, st, priority, -1);
}
@@ -92,19 +94,3 @@ static int reset_source_init(void)
return 0;
}
coredevice_initcall(reset_source_init);
-
-/**
- * of_get_reset_source_priority() - get the desired reset source priority from
- * device tree
- * @node: The device_node to read the property from
- *
- * return: The priority
- */
-unsigned int of_get_reset_source_priority(struct device_node *node)
-{
- unsigned int priority = RESET_SOURCE_DEFAULT_PRIORITY;
-
- of_property_read_u32(node, "reset-source-priority", &priority);
-
- return priority;
-}